public class IList<T>
extends java.lang.Object
implements java.lang.Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
ARRAYLIST_DEFAULT_CAPACITY |
static IList |
EMPTY_ILIST |
| Modifier and Type | Method and Description |
|---|---|
IList<T> |
concat(java.lang.Iterable<? extends T>... iterables) |
IList<T> |
concat(java.lang.Iterable<? extends T> it1) |
IList<T> |
concat(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2) |
IList<T> |
concat(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3) |
IList<T> |
concat(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3,
java.lang.Iterable<? extends T> it4) |
IList<T> |
concat(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3,
java.lang.Iterable<? extends T> it4,
java.lang.Iterable<? extends T> it5) |
IList<T> |
distinct() |
static <T> IList<T> |
emptyList() |
boolean |
equals(java.lang.Object o) |
IList<T> |
filter(IPredicate<? super T> predicate) |
IList<T> |
filterNonNull() |
IOption<T> |
first() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isNotEmpty() |
java.util.Iterator<T> |
iterator() |
static <T> IList<T> |
listOf(java.lang.Iterable<T> iterable) |
static <T> IList<T> |
listOf(java.util.Iterator<T> iterator) |
static <T> IList<T> |
listOf(T... items) |
static <T> IList<T> |
listOf(T t1) |
static <T> IList<T> |
listOf(T t1,
T t2) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5,
T t6) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5,
T t6,
T t7) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5,
T t6,
T t7,
T t8) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5,
T t6,
T t7,
T t8,
T t9) |
static <T> IList<T> |
listOf(T t1,
T t2,
T t3,
T t4,
T t5,
T t6,
T t7,
T t8,
T t9,
T t10) |
<R> IList<R> |
map(IFunction<? super T,? extends R> mapper) |
IList<T> |
plus(java.lang.Iterable<? extends T>... others) |
IList<T> |
plus(java.lang.Iterable<? extends T> it1) |
IList<T> |
plus(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2) |
IList<T> |
plus(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3) |
IList<T> |
plus(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3,
java.lang.Iterable<? extends T> it4) |
IList<T> |
plus(java.lang.Iterable<? extends T> it1,
java.lang.Iterable<? extends T> it2,
java.lang.Iterable<? extends T> it3,
java.lang.Iterable<? extends T> it4,
java.lang.Iterable<? extends T> it5) |
IList<T> |
plus(T... c) |
IList<T> |
plus(T t1) |
IList<T> |
plus(T t1,
T t2) |
IList<T> |
plus(T t1,
T t2,
T t3) |
IList<T> |
plus(T t1,
T t2,
T t3,
T t4) |
IList<T> |
plus(T t1,
T t2,
T t3,
T t4,
T t5) |
int |
size() |
IList<T> |
subtract(java.lang.Iterable<T> other) |
IList<T> |
subtract(T... c) |
IList<T> |
subtract(T t1) |
IList<T> |
subtract(T t1,
T t2) |
IList<T> |
subtract(T t1,
T t2,
T t3) |
IList<T> |
subtract(T t1,
T t2,
T t3,
T t4) |
IList<T> |
subtract(T t1,
T t2,
T t3,
T t4,
T t5) |
java.util.List<T> |
toList() |
java.lang.String |
toString() |
public static final int ARRAYLIST_DEFAULT_CAPACITY
public static final IList EMPTY_ILIST
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(@Nullable java.util.Iterator<T> iterator)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(@Nullable java.lang.Iterable<T> iterable)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5, T t6)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5, T t6, T t7)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8, T t9)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(T t1, T t2, T t3, T t4, T t5, T t6, T t7, T t8, T t9, T t10)
@NotNull @Contract(pure=true) public static <T> IList<T> listOf(@Nullable T... items)
public static <T> IList<T> emptyList()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@NotNull @Contract(pure=true) public java.util.List<T> toList()
@NotNull public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>@Contract(pure=true) public int size()
@NotNull @Contract(pure=true) public <R> IList<R> map(@NotNull IFunction<? super T,? extends R> mapper)
@NotNull @Contract(pure=true) public IList<T> filter(@NotNull IPredicate<? super T> predicate)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T> it1)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T> it1, java.lang.Iterable<? extends T> it2)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T> it1, java.lang.Iterable<? extends T> it2, java.lang.Iterable<? extends T> it3)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T> it1, java.lang.Iterable<? extends T> it2, java.lang.Iterable<? extends T> it3, java.lang.Iterable<? extends T> it4)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T> it1, java.lang.Iterable<? extends T> it2, java.lang.Iterable<? extends T> it3, java.lang.Iterable<? extends T> it4, java.lang.Iterable<? extends T> it5)
@NotNull @Contract(pure=true) public final IList<T> concat(java.lang.Iterable<? extends T>... iterables)
@NotNull @Contract(pure=true) public IList<T> subtract(@NotNull java.lang.Iterable<T> other)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T> it1)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T> it1, @NotNull java.lang.Iterable<? extends T> it2)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T> it1, @NotNull java.lang.Iterable<? extends T> it2, @NotNull java.lang.Iterable<? extends T> it3)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T> it1, @NotNull java.lang.Iterable<? extends T> it2, @NotNull java.lang.Iterable<? extends T> it3, @NotNull java.lang.Iterable<? extends T> it4)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T> it1, @NotNull java.lang.Iterable<? extends T> it2, @NotNull java.lang.Iterable<? extends T> it3, @NotNull java.lang.Iterable<? extends T> it4, @NotNull java.lang.Iterable<? extends T> it5)
@NotNull @Contract(pure=true) public IList<T> plus(@NotNull java.lang.Iterable<? extends T>... others)
@Contract(pure=true) public boolean isEmpty()
@Contract(pure=true) public boolean isNotEmpty()