Package com.querydsl.core.group
Class GroupImpl
java.lang.Object
com.querydsl.core.group.GroupImpl
- All Implemented Interfaces:
Group
Default implementation of the Group interface
- Author:
- sasa, tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionGroupImpl(List<GroupExpression<?, ?>> columnDefinitions, List<QPair<?, ?>> maps) -
Method Summary
Modifier and TypeMethodDescriptionvoid<T,R> R getGroup(GroupExpression<T, R> definition) Returns the value of the given group.<T> List<T>getList(Expression<T> expr) Returns a List of values in this group.<K,V> Map<K, V> getMap(Expression<K> key, Expression<V> value) Returns a Map of values in this group<T> TgetOne(Expression<T> expr) Returns the value of the given single valued expression.<T> Set<T>getSet(Expression<T> expr) Returns a Set of values in this group.<K,V> SortedMap<K, V> getSortedMap(Expression<K> key, Expression<V> value) Returns a SortedMap of values in this group<T> SortedSet<T>getSortedSet(Expression<T> expr) Returns a SortedSet of values in this group.Object[]toArray()Groups elements as an array
-
Constructor Details
-
GroupImpl
-
-
Method Details
-
add
-
getGroup
Description copied from interface:GroupReturns the value of the given group. -
getList
Description copied from interface:GroupReturns a List of values in this group. -
getMap
Description copied from interface:GroupReturns a Map of values in this group -
getSortedMap
Description copied from interface:GroupReturns a SortedMap of values in this group- Specified by:
getSortedMapin interfaceGroup- Type Parameters:
K- Key type of result MapV- Value type of result Map- Parameters:
key- Key expressionvalue- Value expression- Returns:
- Map of values in this group
-
getOne
Description copied from interface:GroupReturns the value of the given single valued expression. This is the first value of given column within this group of the ResultSet. -
getSet
Description copied from interface:GroupReturns a Set of values in this group. -
getSortedSet
Description copied from interface:GroupReturns a SortedSet of values in this group.- Specified by:
getSortedSetin interfaceGroup- Type Parameters:
T- Value type of Set- Parameters:
expr- Grouped expression- Returns:
- Set of values in this group
-
toArray
Description copied from interface:GroupGroups elements as an array
-