public class Group extends java.lang.Object implements Addressable
| Constructor and Description |
|---|
Group() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
address()
Returns the resource name or type.
|
java.util.List<Element> |
elements()
Returns the list of elements that belong to this group.
|
static Group |
empty(java.lang.String name)
Returns an empty group.
|
java.time.ZonedDateTime |
lastModified()
Returns the date time with timezone of the last update.
|
int |
total()
Returns the total number of elements for this group.
|
static Group |
withElement(Element element)
Returns a result containing only one unique element, as the result of a query with an
AddressFilter. |
static Group |
withElements(java.lang.String name,
java.util.List<Element> elements,
int total,
java.time.ZonedDateTime zonedDateTime)
Returns a multi element group.
|
public java.util.List<Element> elements()
public int total()
public java.lang.String address()
Addressableaddress in interface Addressablepublic java.time.ZonedDateTime lastModified()
AddressablelastModified in interface Addressablepublic static Group empty(java.lang.String name)
name - the group namepublic static Group withElement(Element element)
AddressFilter.element - the unique elementpublic static Group withElements(java.lang.String name, java.util.List<Element> elements, int total, java.time.ZonedDateTime zonedDateTime)
name - the group nameelements - the list of elements for this group (might be a paged result)total - the number of total results for this groupzonedDateTime - the date of the last update