Modifier and Type | Method and Description |
---|---|
static Side |
fromIndex(int index) |
static Side |
fromLeft(boolean isLeft) |
static Side |
fromRight(boolean isRight) |
static <T> Side |
fromValue(java.util.List<? extends T> list,
T value) |
int |
getEndLine(LineFragment fragment) |
int |
getEndOffset(DiffFragment fragment) |
int |
getIndex() |
int |
getStartLine(LineFragment fragment) |
int |
getStartOffset(DiffFragment fragment) |
boolean |
isLeft() |
Side |
other() |
Side |
other(boolean other) |
boolean |
select(boolean [] array) |
<T> T |
select(Couple<T> region) |
int |
select(int [] array) |
int |
select(int left,
int right) |
<T> T |
select(java.util.List<T> list) |
<T> T |
select(T [] array) |
<T> T |
select(T left,
T right) |
<T> T |
selectNotNull(Couple<T> region) |
<T> T |
selectNotNull(java.util.List<T> list) |
<T> T |
selectNotNull(T [] array) |
<T> T |
selectNotNull(T left,
T right) |
static Side |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Side[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Side[] values()
for (Side c : Side.values()) System.out.println(c);
public static Side 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 Side fromIndex(int index)
public static Side fromLeft(boolean isLeft)
public static Side fromRight(boolean isRight)
public int getIndex()
public boolean isLeft()
public Side other()
public Side other(boolean other)
public int select(int left, int right)
public <T> T select(T left, T right)
public <T> T selectNotNull(T left, T right)
public boolean select(boolean [] array)
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 <T> T select(Couple<T> region)
public <T> T selectNotNull(Couple<T> region)
public static <T> Side fromValue(java.util.List<? extends T> list, T value)
public int getStartOffset(DiffFragment fragment)
public int getEndOffset(DiffFragment fragment)
public int getStartLine(LineFragment fragment)
public int getEndLine(LineFragment fragment)