Package de.elo.utils

Class Boxed

java.lang.Object
de.elo.utils.Boxed

public class Boxed
extends java.lang.Object
Provides code to convert and add int arrays and List of Integers. Examples:

 List list = Boxed.ints(1,3,3,4).unique().sort().toList();
 List list = ...; int[] arr = Boxed.ints(list).toArray();
 
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Boxed.Ints
    Encapsulates a List of Integers.
  • Method Summary

    Modifier and Type Method Description
    static Boxed.Ints ints()
    Create new Ints object.
    static Boxed.Ints ints​(int... arr)
    Create and initialize new Ints object.
    static Boxed.Ints ints​(java.util.Collection<java.lang.Integer> list)
    Create and initialize new Ints object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • ints

      public static Boxed.Ints ints()
      Create new Ints object.
      Returns:
      Ints
    • ints

      public static Boxed.Ints ints​(int... arr)
      Create and initialize new Ints object.
      Returns:
      Ints
    • ints

      public static Boxed.Ints ints​(java.util.Collection<java.lang.Integer> list)
      Create and initialize new Ints object.
      Returns:
      Ints