Class SubChain
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.selector.value.chained.SubChain
-
public class SubChain extends Object
A subList out of a single chain.Never includes an anchor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<Object>
getEntityList()
Object
getFirstEntity()
Object
getLastEntity()
int
getSize()
int
hashCode()
<Solution_>
SubChainrebase(ScoreDirector<Solution_> destinationScoreDirector)
SubChain
reverse()
SubChain
subChain(int fromIndex, int toIndex)
String
toDottedString()
String
toString()
-
-
-
Method Detail
-
getFirstEntity
public Object getFirstEntity()
-
getLastEntity
public Object getLastEntity()
-
getSize
public int getSize()
-
reverse
public SubChain reverse()
-
subChain
public SubChain subChain(int fromIndex, int toIndex)
-
rebase
public <Solution_> SubChain rebase(ScoreDirector<Solution_> destinationScoreDirector)
-
toDottedString
public String toDottedString()
-
-