Interface LocationInList

All Superinterfaces:
Comparable<LocationInList>, ElementLocation

public sealed interface LocationInList extends ElementLocation, Comparable<LocationInList>
Uniquely identifies the location of a value in a list variable. Instances can be created by ElementLocation.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_> @NonNull Entity_ entity()
    • index

      int index()