public class Comparators extends Object
Modifier and Type | Method and Description |
---|---|
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
|
public static Comparator chain(Comparator c0, Comparator c1)
c0
- a comparatorc1
- a comparatorchain(Comparator[])
public static Comparator chain(Comparator c0, Comparator c1, Comparator c2)
c0
- a comparatorc1
- a comparatorc2
- a comparatorchain(Comparator[])
public static Comparator chain(Comparator c0, Comparator c1, Comparator c2, Comparator c3)
c0
- a comparatorc1
- a comparatorc2
- a comparatorc3
- a comparatorchain(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 comparatorchain(Comparator[])
public static Comparator chain(List comparators)
comparators
- a List of comparators to chain togetherchain(Comparator[])
public static Comparator chain(Comparator[] comparators)
comparators
- the array of comparatorspublic 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 selectOption.getTriggers()
public static Comparator namedLast(String name)
name
- the trigger name to selectOption.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()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.