public class Collections extends Object
Constructor and Description |
---|
Collections() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
$c(List<T> list)
$c turns a listStream back into a regular listStream.
|
static <T> Set<T> |
$c(Set<T> set)
Un-decorates a set with additional criteria capabilities.
|
static <T> List<T> |
$q(List<T> list,
Class<?>... classes)
$q turns a listStream into a querying listStream.
|
static <T> Set<T> |
$q(Set<T> set)
Decorates a set with additional criteria capabilities.
|
static <T> List<T> |
listQuery(List<T> list)
listQuery turns a listStream into a querying listStream.
|
static <T> List<T> |
listQuery(List<T> list,
boolean useField,
boolean useUnSafe,
Class<?>... classes)
listQuery turns a listStream into a querying listStream.
|
static <T> List<T> |
query(List<T> list,
Criteria... expressions)
Allow you to criteria a criteria-able listStream.
|
static <T> List<T> |
query(Set<T> set,
Criteria... expressions)
Allow you to criteria a criteria-able listStream.
|
static <T> Set<T> |
setQuery(Set<T> set)
Decorates a set with additional criteria capabilities.
|
static <T> Set<T> |
setQuery(Set<T> set,
boolean useField,
boolean useUnSafe)
Decorates a set with all sorts of chocolaty richness
|
static <T> List<T> |
sortedQuery(List<T> list,
String sortBy,
Criteria... expressions)
Allow you to criteria a criteria-able listStream.
|
static <T> List<T> |
sortedQuery(Set<T> set,
String sortBy,
Criteria... expressions)
Allow you to criteria a criteria-able listStream.
|
public static <T> List<T> $q(List<T> list, Class<?>... classes)
T
- The type this criteria listStream will returnlist
- the listStream you want to convertclasses
- classes you want to be able to criteria.public static <T> List<T> $c(List<T> list)
T
- the type of the listStream.list
- the listStreamplainList(java.util.List)
public static <T> List<T> listQuery(List<T> list)
T
- The type this criteria listStream will returnlist
- the listStream you want to convert$q(java.util.List, Class[])
public static <T> List<T> listQuery(List<T> list, boolean useField, boolean useUnSafe, Class<?>... classes)
T
- The type this criteria listStream will returnlist
- the listStream you want to convertclasses
- classes you want to be able to criteria.useField
- use the field instead of the propertyuseUnSafe
- use unsafeclasses
- listStream of classes that we can criteria against, these can be component classespublic static <T> Set<T> $q(Set<T> set)
T
- generic typeset
- set to decoratepublic static <T> Set<T> $c(Set<T> set)
T
- generic typeset
- set to un-decoratepublic static <T> Set<T> setQuery(Set<T> set)
T
- generic typeset
- set to un-decoratepublic static <T> Set<T> setQuery(Set<T> set, boolean useField, boolean useUnSafe)
T
- set
- useField
- useUnSafe
- public static <T> List<T> query(List<T> list, Criteria... expressions)
T
- the type of the listStreamlist
- the listStream you want to criteriaexpressions
- array of expressionspublic static <T> List<T> sortedQuery(List<T> list, String sortBy, Criteria... expressions)
T
- the type of the listStreamlist
- the listStream you want to criteriaexpressions
- array of expressionspublic static <T> List<T> query(Set<T> set, Criteria... expressions)
T
- the type of the listStreamset
- the set you want to criteriaexpressions
- array of expressionspublic static <T> List<T> sortedQuery(Set<T> set, String sortBy, Criteria... expressions)
T
- the type of the listStreamset
- the set you want to criteriaexpressions
- array of expressionsCopyright © 2014. All rights reserved.