public enum LimitFunction extends Enum<LimitFunction>
Enum Constant and Description |
---|
BottomCount
Returns a specified number of items from the
bottom of a set, optionally ordering the set first.
|
BottomPercent
Sorts a set and returns the bottom N elements
whose cumulative total is at least a specified percentage.
|
BottomSum
Sorts a set and returns the bottom N elements
whose cumulative total is at least a specified value.
|
TopCount
Returns a specified number of items from the
top of a set, optionally ordering the set first.
|
TopPercent
Sorts a set and returns the top N elements
whose cumulative total is at least a specified percentage.
|
TopSum
Sorts a set and returns the top N elements
whose cumulative total is at least a specified value.
|
Modifier and Type | Method and Description |
---|---|
static LimitFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LimitFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LimitFunction TopCount
public static final LimitFunction TopPercent
public static final LimitFunction TopSum
public static final LimitFunction BottomCount
public static final LimitFunction BottomPercent
public static final LimitFunction BottomSum
public static LimitFunction[] values()
for (LimitFunction c : LimitFunction.values()) System.out.println(c);
public static LimitFunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null