RecordType - The type of ActivityRecord contained within this set.public class SimpleActivityRecordSet<RecordType extends ActivityRecord> extends Object implements ActivityRecordSet<RecordType>
ActivityRecordSet.SortableProperty| Constructor and Description |
|---|
SimpleActivityRecordSet() |
| 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.
|
public Collection<RecordType> asCollection() throws org.apache.guacamole.GuacamoleException
ActivityRecordSetasCollection in interface ActivityRecordSet<RecordType extends ActivityRecord>org.apache.guacamole.GuacamoleException - If an error occurs while retrieving the records within this set.public ActivityRecordSet<RecordType> contains(String value) throws org.apache.guacamole.GuacamoleException
ActivityRecordSetcontains in interface ActivityRecordSet<RecordType extends ActivityRecord>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.public ActivityRecordSet<RecordType> limit(int limit) throws org.apache.guacamole.GuacamoleException
ActivityRecordSetlimit 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 in interface ActivityRecordSet<RecordType extends ActivityRecord>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.public ActivityRecordSet<RecordType> sort(ActivityRecordSet.SortableProperty property, boolean desc) throws org.apache.guacamole.GuacamoleException
ActivityRecordSetsort in interface ActivityRecordSet<RecordType extends ActivityRecord>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 © 2020. All rights reserved.