|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.cli.util.Comparators
public final class Comparators
A collection of Comparators suitable for use with Option instances.
Method Summary | |
---|---|
static Comparator |
chain(Comparator[] comparators)
Chains an array of comparators together. |
static Comparator |
chain(Comparator c0,
Comparator c1)
Chains comparators together. |
static Comparator |
chain(Comparator c0,
Comparator c1,
Comparator c2)
Chains comparators together. |
static Comparator |
chain(Comparator c0,
Comparator c1,
Comparator c2,
Comparator c3)
Chains comparators together. |
static Comparator |
chain(Comparator c0,
Comparator c1,
Comparator c2,
Comparator c3,
Comparator c4)
Chains comparators together. |
static Comparator |
chain(List comparators)
Chains comparators together. |
static Comparator |
commandFirst()
Forces Command instances to appear at the beginning of lists |
static Comparator |
commandLast()
Forces Command instances to appear at the end of lists |
static Comparator |
defaultOptionFirst()
Forces DefaultOption instances to appear at the beginning of lists |
static Comparator |
defaultOptionLast()
Forces DefaultOption instances to appear at the end of lists |
static Comparator |
groupFirst()
Forces Group instances to appear at the beginning of lists |
static Comparator |
groupLast()
Forces Group instances to appear at the end of lists |
static Comparator |
namedFirst(String name)
Forces Comparators with a particular trigger to appear at the beginning of lists |
static Comparator |
namedLast(String name)
Forces Comparators with a particular trigger to appear at the end of lists |
static Comparator |
preferredNameFirst()
Orders Options by preferredName |
static Comparator |
preferredNameLast()
Orders Options by preferredName, reversed |
static Comparator |
requiredFirst()
Orders Options grouping required Options first |
static Comparator |
requiredLast()
Orders Options grouping required Options last |
static Comparator |
switchFirst()
Forces Switch instances to appear at the beginning of lists |
static Comparator |
switchLast()
Forces Switch instances to appear at the end of lists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Comparator chain(Comparator c0, Comparator c1)
c0
- a comparatorc1
- a comparator
chain(Comparator[])
public static Comparator chain(Comparator c0, Comparator c1, Comparator c2)
c0
- a comparatorc1
- a comparatorc2
- a comparator
chain(Comparator[])
public static Comparator chain(Comparator c0, Comparator c1, Comparator c2, Comparator c3)
c0
- a comparatorc1
- a comparatorc2
- a comparatorc3
- a comparator
chain(Comparator[])
public static Comparator chain(Comparator c0, Comparator c1, Comparator c2, Comparator c3, Comparator c4)
c0
- a comparatorc1
- a comparatorc2
- a comparatorc3
- a comparatorc4
- a comparator
chain(Comparator[])
public static Comparator chain(List comparators)
comparators
- a List of comparators to chain together
chain(Comparator[])
public static Comparator chain(Comparator[] comparators)
comparators
- the array of comparators
public static Comparator groupFirst()
Group
public static Comparator groupLast()
Group
public static Comparator switchFirst()
Switch
public static Comparator switchLast()
Switch
public static Comparator commandFirst()
Command
public static Comparator commandLast()
Command
public static Comparator defaultOptionFirst()
DefaultOption
public static Comparator defaultOptionLast()
DefaultOption
public static Comparator namedFirst(String name)
name
- the trigger name to select
Option.getTriggers()
public static Comparator namedLast(String name)
name
- the trigger name to select
Option.getTriggers()
public static Comparator preferredNameFirst()
Option.getPreferredName()
public static Comparator preferredNameLast()
Option.getPreferredName()
public static Comparator requiredFirst()
Option.isRequired()
public static Comparator requiredLast()
Option.isRequired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |