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 classBoxed.IntsEncapsulates a List of Integers. -
Method Summary
Modifier and Type Method Description static Boxed.Intsints()Create new Ints object.static Boxed.Intsints(int... arr)Create and initialize new Ints object.static Boxed.Intsints(java.util.Collection<java.lang.Integer> list)Create and initialize new Ints object.