public final class SplitIndex extends Object
Splitter
.
This class contains all necessary information about the an index of an
exchange that was split off. This includes the actual index as well as a
flag indicating that the index is the last in the collection of sub exchanges.
- Immutable
- fully thread-safe
- not for subclassing
- uses static factory methodsModifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getIndex() |
int |
hashCode() |
boolean |
isLast() |
String |
toString() |
static SplitIndex |
valueOf(int index,
boolean last)
Static factory method to return a split index
|
public static SplitIndex valueOf(int index, boolean last)
index
- actual Index of an exchange in the corresponding collection of
sub exchangeslast
- true
if this index is the last in the corresponding
collection of sub exchangesSplitIndex
corresponding to the index informationpublic int getIndex()
public boolean isLast()
true
if this index is the last in the corresponding
collection of sub exchangesCopyright © 2018 Open eHealth Foundation. All rights reserved.