| Package | Description |
|---|---|
| com.atomicleopard.expressive |
Expressive is a java library designed to enable simple and easily read usage
of the Java Collections API. |
| com.atomicleopard.expressive.predicate | |
| com.atomicleopard.expressive.transform |
| Modifier and Type | Class and Description |
|---|---|
class |
EListImpl<T>
Implementation of the
EList interface. |
| Modifier and Type | Method and Description |
|---|---|
EList<T> |
EListImpl.addItems(Collection<? extends T> values) |
EList<T> |
EList.addItems(Collection<? extends T> collection)
Appends all of the elements in the specific collections onto the end of this list.
|
EList<T> |
EListImpl.addItems(T... values) |
EList<T> |
EList.addItems(T... values)
Appends all of the specified elements onto the end of this list.
|
EList<T> |
EListImpl.duplicate() |
EList<T> |
EList.duplicate()
Creates a copy of this
EList containing the same elements. |
static <T> EList<T> |
Expressive.flatten(Collection<? extends Collection<? extends T>> collectionOfCollection)
Flattens the given collections of collections into a single list containing all entries.
|
static <T> EList<T> |
Expressive.flatten(Collection<? extends T>... collectionOfCollection)
Flattens the given varargs of collections into a single list containing all entries.
|
static <T> EList<T> |
Expressive.flatten(T[]... values)
Convenience method for creating an array containing the concatenated contents of the given set of arrays.
|
EList<T> |
EListImpl.getItems(EPredicate<T> predicate) |
EList<T> |
EList.getItems(EPredicate<T> predicate) |
EList<T> |
EListImpl.getItems(int index,
int size) |
EList<T> |
EList.getItems(int index,
int size)
Returns a list of the items from the given index for the given size.
|
EList<T> |
EListImpl.insertItems(int index,
Collection<? extends T> value) |
EList<T> |
EList.insertItems(int index,
Collection<? extends T> values)
Inserts all of the elements in the specified collections of elements into
this list at the specified position.
|
EList<T> |
EListImpl.insertItems(int index,
T... values) |
EList<T> |
EList.insertItems(int index,
T... values)
Inserts all of the elements in the specified elements into this list at
the specified position.
|
static <T> EList<T> |
Expressive.list(Collection<? extends T> values)
Convenience method for creating an
EList from a Collection. |
static <T> EList<T> |
Expressive.list(Iterable<? extends T> values)
|
static <T> EList<T> |
Expressive.list(Iterator<? extends T> values)
|
static <T> EList<T> |
Expressive.list(T... values)
Convenience method for creating an
EList. |
static <T,I extends Iterable<T>> |
Expressive.Filter.remove(I items,
EPredicate<T> predicate)
Return a new
EList removing the items that pass the given EPredicate. |
EList<T> |
EListImpl.removeItems(Collection<? extends T> values) |
EList<T> |
EList.removeItems(Collection<? extends T> values)
Removes from this list all of the elements in the specified collections.
|
EList<T> |
EListImpl.removeItems(EPredicate<T> predicate) |
EList<T> |
EList.removeItems(EPredicate<T> predicate) |
EList<T> |
EListImpl.removeItems(T... values) |
EList<T> |
EList.removeItems(T... values)
Removes from this list all of the specified elements.
|
static <T,I extends Iterable<T>> |
Expressive.Filter.retain(I items,
EPredicate<T> predicate)
Return a new
EList including only the items that pass the given EPredicate. |
EList<T> |
EListImpl.retainItems(Collection<? extends T> values) |
EList<T> |
EList.retainItems(Collection<? extends T> values)
Retains only the elements in this list that are contained in the
specified collections.
|
EList<T> |
EListImpl.retainItems(EPredicate<T> predicate) |
EList<T> |
EList.retainItems(EPredicate<T> predicate) |
EList<T> |
EListImpl.retainItems(T... values) |
EList<T> |
EList.retainItems(T... values)
Retains only the elements in this list that are specified.
|
EList<T> |
EListImpl.sort(Comparator<T> comparator) |
EList<T> |
EList.sort(Comparator<T> comparator)
Sorts this
EList in place using the given comparator. |
EList<T> |
EListImpl.subList(int fromIndex,
int toIndex) |
EList<T> |
EList.subList(int fromIndex,
int toIndex)
Redefines
List.subList(int, int) to return an EList |
| Modifier and Type | Method and Description |
|---|---|
static <T> Pair<EList<T>,EList<T>> |
Expressive.Filter.split(Collection<T> items,
EPredicate<T> predicate)
Returns a pair of lists split using the supplied
EPredicate. |
static <T> Pair<EList<T>,EList<T>> |
Expressive.Filter.split(Collection<T> items,
EPredicate<T> predicate)
Returns a pair of lists split using the supplied
EPredicate. |
Pair<EList<T>,EList<T>> |
EListImpl.split(EPredicate<T> predicate) |
Pair<EList<T>,EList<T>> |
EListImpl.split(EPredicate<T> predicate) |
Pair<EList<T>,EList<T>> |
EList.split(EPredicate<T> predicate) |
Pair<EList<T>,EList<T>> |
EList.split(EPredicate<T> predicate) |
| Constructor and Description |
|---|
EListImpl(EList<T> elist) |
| Modifier and Type | Method and Description |
|---|---|
static <T> EList<EPredicate<T>> |
EqualsPredicate.asPredicates(List<T> values) |
static <T> EList<EPredicate<T>> |
EqualsPredicate.asPredicates(T... values) |
| Modifier and Type | Method and Description |
|---|---|
EList<Out> |
CollectionTransformer.from(In... in) |
EList<Out> |
CollectionTransformer.from(Iterable<In> in) |
Copyright © 2013 Atomic Leopard. All Rights Reserved.