Class SplitIndex
- java.lang.Object
-
- org.openehealth.ipf.platform.camel.core.process.splitter.SplitIndex
-
public final class SplitIndex extends Object
Immutable class specifying an index of a split performed bySplitter
. 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 methods- Author:
- Jens Riemschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Method Detail
-
valueOf
public static SplitIndex valueOf(int index, boolean last)
Static factory method to return a split index- Parameters:
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 exchanges- Returns:
- A
SplitIndex
corresponding to the index information
-
getIndex
public int getIndex()
- Returns:
- the index in the corresponding collection of sub exchanges
-
isLast
public boolean isLast()
- Returns:
true
if this index is the last in the corresponding collection of sub exchanges
-
-