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.

  • Constructor Details

    • SubChain

      public SubChain(List<Object> entityList)
  • Method Details

    • getEntityList

      public List<Object> getEntityList()
    • 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 SubChain rebase(ScoreDirector<?> destinationScoreDirector)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toDottedString

      public String toDottedString()