public class OpFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static OpFinderFilter |
ALL
This filter will always return true and hence includes ALL OpSnapshot values
|
| Constructor and Description |
|---|
OpFinder(OpRegistry opRegistry) |
| Modifier and Type | Method and Description |
|---|---|
List |
find()
This will return ALL values from the OpRegistry sorted into OpSnapshotComparator.BY_DEFAULT order.
|
List |
find(Comparator comparator)
This will return ALL values in the OpRegistry sorted into the order distated by the comparator.
|
List<OpSnapshot> |
find(OpFinderFilter filter,
Comparator comparator)
This will search an OpRegistry and find all OpSnapshot values that are suitable to a given filter and are sorted
by the comparator.
|
public static final OpFinderFilter ALL
public OpFinder(OpRegistry opRegistry)
public List find()
public List find(Comparator comparator)
comparator - the comparator to usepublic List<OpSnapshot> find(OpFinderFilter filter, Comparator comparator)
filter - a OpFinderFilter that will decide if a value is suitable for inclusion. If it is null, then the
All fitler will be usedcomparator - a comparator used to sort the list. If null, then the list will be sorted in
OpSnapshotComparator.BY_DEFAULT orderCopyright © 2016 Atlassian. All rights reserved.