SimpleActivityRecordSet
<ConnectionRecord
>
instead.@Deprecated public class SimpleConnectionRecordSet extends Object implements ConnectionRecordSet
ActivityRecordSet.SortableProperty
Constructor and Description |
---|
SimpleConnectionRecordSet()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collection<ConnectionRecord> |
asCollection()
Deprecated.
Returns all records within this set as a standard Collection.
|
ConnectionRecordSet |
contains(String value)
Deprecated.
Returns the subset of records which contain the given value.
|
ConnectionRecordSet |
limit(int limit)
Deprecated.
Returns the subset of records containing only the first
limit records. |
ConnectionRecordSet |
sort(ActivityRecordSet.SortableProperty property,
boolean desc)
Deprecated.
Returns a ActivityRecordSet containing identically the records within
this set, sorted according to the specified criteria.
|
public Collection<ConnectionRecord> asCollection() throws org.apache.guacamole.GuacamoleException
ActivityRecordSet
asCollection
in interface ActivityRecordSet<ConnectionRecord>
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the records within this set.public ConnectionRecordSet contains(String value) throws org.apache.guacamole.GuacamoleException
ActivityRecordSet
contains
in interface ActivityRecordSet<ConnectionRecord>
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 ConnectionRecordSet limit(int limit) throws org.apache.guacamole.GuacamoleException
ActivityRecordSet
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
in interface ActivityRecordSet<ConnectionRecord>
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 ConnectionRecordSet sort(ActivityRecordSet.SortableProperty property, boolean desc) throws org.apache.guacamole.GuacamoleException
ActivityRecordSet
sort
in interface ActivityRecordSet<ConnectionRecord>
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.