Package com.floragunn.fluent.collections
Interface ImmutableList<E>
-
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>,UnmodifiableCollection<E>,UnmodifiableList<E>
public interface ImmutableList<E> extends UnmodifiableList<E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classImmutableList.Builder<E>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Eany()static <E> Collector<E,?,ImmutableList<E>>collector()static <E> ImmutableList<E>concat(Collection<? extends E> c1, Collection<? extends E> c2)static <E> ImmutableList<E>concat(Collection<? extends E> c1, Collection<? extends E> c2, Collection<? extends E> c3)static <E> ImmutableList<E>empty()Efirst()booleanforAllApplies(Predicate<E> predicate)booleanforAnyApplies(Predicate<E> predicate)Elast()static <C,E>
ImmutableList<E>map(Collection<C> collection, Function<C,E> mappingFunction)<O> ImmutableList<O>map(Function<E,O> mappingFunction)ImmutableList<E>matching(Predicate<E> predicate)static <E> ImmutableList<E>of(E e)static <E> ImmutableList<E>of(E e1, E e2)static <E> ImmutableList<E>of(E e1, E e2, E e3, E... more)static <E> ImmutableList<E>of(Collection<? extends E> collection)static <E> ImmutableList<E>ofArray(E... more)static <E> ImmutableList<E>ofNonNull(E e)static <E> ImmutableList<E>ofNonNull(E e1, E e2)static <E> ImmutableList<E>ofNonNull(E e1, E e2, E... more)Eonly()ImmutableList<E>subList(int fromIndex, int toIndex)StringtoShortString()ImmutableList<E>with(E other)ImmutableList<E>with(E... other)ImmutableList<E>with(Collection<E> other)ImmutableList<E>with(Optional<E> other)ImmutableList<E>without(Collection<E> other)-
Methods inherited from interface java.util.Collection
parallelStream, stream
-
Methods inherited from interface java.util.List
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, spliterator, toArray, toArray
-
Methods inherited from interface com.floragunn.fluent.collections.UnmodifiableCollection
iterator
-
-
-
-
Method Detail
-
empty
static <E> ImmutableList<E> empty()
-
of
static <E> ImmutableList<E> of(E e)
-
of
static <E> ImmutableList<E> of(E e1, E e2)
-
of
@SafeVarargs static <E> ImmutableList<E> of(E e1, E e2, E e3, E... more)
-
ofArray
@SafeVarargs static <E> ImmutableList<E> ofArray(E... more)
-
of
static <E> ImmutableList<E> of(Collection<? extends E> collection)
-
ofNonNull
static <E> ImmutableList<E> ofNonNull(E e)
-
ofNonNull
static <E> ImmutableList<E> ofNonNull(E e1, E e2)
-
ofNonNull
@SafeVarargs static <E> ImmutableList<E> ofNonNull(E e1, E e2, E... more)
-
concat
static <E> ImmutableList<E> concat(Collection<? extends E> c1, Collection<? extends E> c2)
-
concat
static <E> ImmutableList<E> concat(Collection<? extends E> c1, Collection<? extends E> c2, Collection<? extends E> c3)
-
map
static <C,E> ImmutableList<E> map(Collection<C> collection, Function<C,E> mappingFunction)
-
collector
static <E> Collector<E,?,ImmutableList<E>> collector()
-
with
ImmutableList<E> with(E other)
-
with
ImmutableList<E> with(Collection<E> other)
-
with
ImmutableList<E> with(Optional<E> other)
-
with
ImmutableList<E> with(E... other)
-
matching
ImmutableList<E> matching(Predicate<E> predicate)
-
without
ImmutableList<E> without(Collection<E> other)
-
map
<O> ImmutableList<O> map(Function<E,O> mappingFunction)
-
subList
ImmutableList<E> subList(int fromIndex, int toIndex)
-
only
E only()
-
any
E any()
-
first
E first()
-
last
E last()
-
toShortString
String toShortString()
-
-