Modifier and Type | Method and Description |
---|---|
static ThreeSide |
fromIndex(int index) |
static <T> ThreeSide |
fromValue(java.util.List<? extends T> list,
T value) |
int |
getIndex() |
static <T> java.util.List<T> |
map(Function<? super ThreeSide,? extends T> function) |
int |
select(int [] array) |
<T> T |
select(java.util.List<T> list) |
<T> T |
select(T [] array) |
<T> T |
select(T left,
T base,
T right) |
<T> T |
selectNotNull(java.util.List<T> list) |
<T> T |
selectNotNull(T [] array) |
<T> T |
selectNotNull(T left,
T base,
T right) |
static ThreeSide |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreeSide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreeSide LEFT
public static final ThreeSide BASE
public static final ThreeSide RIGHT
public static ThreeSide[] values()
for (ThreeSide c : ThreeSide.values()) System.out.println(c);
public static ThreeSide valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ThreeSide fromIndex(int index)
public int getIndex()
public <T> T select(T left, T base, T right)
public <T> T selectNotNull(T left, T base, T right)
public int select(int [] array)
public <T> T select(T [] array)
public <T> T selectNotNull(T [] array)
public <T> T select(java.util.List<T> list)
public <T> T selectNotNull(java.util.List<T> list)
public static <T> ThreeSide fromValue(java.util.List<? extends T> list, T value)