Interface PositionInList

All Superinterfaces:
Comparable<PositionInList>, ElementPosition

@NullMarked public sealed interface PositionInList extends ElementPosition, Comparable<PositionInList>
Uniquely identifies the position of a value in a list variable. Instances can be created by ElementPosition.of(Object, int).

Within that one list, the index is unique for each value and therefore the instances are comparable. Comparing them between different lists has no meaning.

This package and all of its contents are part of the Move Streams API, which is under development and is only offered as a preview feature. There are no guarantees for backward compatibility; any class, method, or field may change or be removed without prior notice, although we will strive to avoid this as much as possible.

We encourage you to try the API and give us feedback on your experience with it, before we finalize the API. Please direct your feedback to Timefold Solver Github.

  • Method Details

    • entity

      <Entity_> Entity_ entity()
    • index

      int index()