| 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 |
| Modifier and Type | Method and Description |
|---|---|
static <T> EPredicate<T> |
Expressive.Predicate.any()
The returned predicate will return true for
pass(Object) for all input. |
static <T> EPredicate<T> |
Expressive.Predicate.is(T object)
The returned predicate will return true for
pass(Object) only for objects whose Object.equals(Object) method returns true for the given argument. |
static <T> EPredicate<T> |
Expressive.Predicate.isNull()
The returned predicate will return true for
pass(Object) only for null. |
static <T> EPredicate<T> |
Expressive.Predicate.none()
The returned predicate will return false for
pass(Object) for all input. |
static <T> EPredicate<T> |
Expressive.Predicate.noneOf(T... objects)
The returned predicate will return true for
pass(Object) for any objects whose Object.equals(Object) method
does not return true for any of the the given arguments. |
static <T> EPredicate<T> |
Expressive.Predicate.not(EPredicate<T> predicate)
The returned predicate will return the opposite of the given
EPredicate. |
static <T> EPredicate<T> |
Expressive.Predicate.not(T value)
The returned predicate will return true for
pass(Object) for any objects whose Object.equals(Object) method
returns false for the given argument. |
static <T> EPredicate<T> |
Expressive.Predicate.notNull()
The returned predicate will return true for
pass(Object) for any non-null object. |
| Modifier and Type | Method and Description |
|---|---|
static <T> AllOfPredicate<T> |
Expressive.Predicate.allOf(EPredicate<T>... predicates)
The returned predicate will return true for
pass(Object) for any value that would pass all
of the given EPredicate instances. |
EList<T> |
EListImpl.getItems(EPredicate<T> predicate) |
EList<T> |
EList.getItems(EPredicate<T> predicate) |
static <T> EPredicate<T> |
Expressive.Predicate.not(EPredicate<T> predicate)
The returned predicate will return the opposite of the given
EPredicate. |
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(EPredicate<T> predicate) |
EList<T> |
EList.removeItems(EPredicate<T> predicate) |
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(EPredicate<T> predicate) |
EList<T> |
EList.retainItems(EPredicate<T> predicate) |
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>> |
EList.split(EPredicate<T> predicate) |
| Modifier and Type | Class and Description |
|---|---|
class |
AllOfPredicate<T> |
class |
AnyOfPredicate<T>
An
EPredicate which will pass any input which is considered equal to
one of the specified objects, using the Object.equals(Object) implementation. |
class |
ConstantPredicate<T>
An
EPredicate that always returns a specified value, true or false. |
class |
EqualsPredicate<T>
An
EPredicate which will pass any input which is considered equal to
the specified object, using the Object.equals(Object) implementation. |
class |
NotPredicate<T> |
class |
NullPredicate<T>
Passes any input which is null.
|
class |
PredicateBuilder<T>
PredicateBuilder allows the creation of a predicate for a specified type. |
| Modifier and Type | Field and Description |
|---|---|
protected List<EPredicate<T>> |
AnyOfPredicate.predicates |
protected List<EPredicate<T>> |
AllOfPredicate.predicates |
protected LinkedHashMap<String,EPredicate<?>> |
PredicateBuilder.propertyPredicates |
| 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) |
static <T> ETransformer<T,EPredicate<T>> |
EqualsPredicate.Transformer.ForValue() |
static <T> CollectionTransformer<T,EPredicate<T>> |
EqualsPredicate.Transformer.ForValues() |
| Modifier and Type | Method and Description |
|---|---|
AllOfPredicate<T> |
AllOfPredicate.and(EPredicate<T>... predicates) |
AnyOfPredicate<T> |
AnyOfPredicate.or(EPredicate<T>... predicates) |
<S> PredicateBuilder<T> |
PredicateBuilder.PredicateUsing.passes(EPredicate<S> propertyPredicate) |
protected void |
PredicateBuilder.put(String property,
EPredicate<?> predicate) |
| Constructor and Description |
|---|
AllOfPredicate(EPredicate<T>... predicates) |
AnyOfPredicate(EPredicate<T>... predicates) |
NotPredicate(EPredicate<T> predicate) |
| Constructor and Description |
|---|
AllOfPredicate(List<EPredicate<T>> predicates) |
AnyOfPredicate(List<EPredicate<T>> predicates) |
Copyright © 2013 Atomic Leopard. All Rights Reserved.