RecordType
- The type of ActivityRecord contained within this set.public interface ActivityRecordSet<RecordType extends ActivityRecord>
Modifier and Type | Interface and Description |
---|---|
static class |
ActivityRecordSet.SortableProperty
All properties of activity records which can be used as sorting
criteria.
|
Modifier and Type | Method and Description |
---|---|
Collection<RecordType> |
asCollection()
Returns all records within this set as a standard Collection.
|
ActivityRecordSet<RecordType> |
contains(String value)
Returns the subset of records which contain the given value.
|
ActivityRecordSet<RecordType> |
limit(int limit)
Returns the subset of records containing only the first
limit records. |
ActivityRecordSet<RecordType> |
sort(ActivityRecordSet.SortableProperty property,
boolean desc)
Returns a ActivityRecordSet containing identically the records within
this set, sorted according to the specified criteria.
|
Collection<RecordType> asCollection() throws org.apache.guacamole.GuacamoleException
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the records within this set.ActivityRecordSet<RecordType> contains(String value) throws org.apache.guacamole.GuacamoleException
value
- The value which all records within the resulting subset should
contain.org.apache.guacamole.GuacamoleException
- If an error occurs while restricting the current subset.ActivityRecordSet<RecordType> limit(int limit) throws org.apache.guacamole.GuacamoleException
limit
records. If the subset has fewer than
limit
records, then this function has no effect. This
function may also affect the contents of the current ActivityRecordSet.
The contents of the current ActivityRecordSet should NOT be relied upon
after this function is called.limit
- The maximum number of records that the new subset should contain.limit
records.org.apache.guacamole.GuacamoleException
- If an error occurs while limiting the current subset.ActivityRecordSet<RecordType> sort(ActivityRecordSet.SortableProperty property, boolean desc) throws org.apache.guacamole.GuacamoleException
property
- The property by which the records within the resulting set should be
sorted.desc
- Whether the records should be sorted according to the specified
property in descending order. If false, records will be sorted
according to the specified property in ascending order.org.apache.guacamole.GuacamoleException
- If an error occurs while sorting the current subset, or if the given
property is not supported by the implementation.Copyright © 2018. All rights reserved.