Interface CountableValueRange<T>

    • Method Detail

      • getSize

        long getSize()
        Used by uniform random selection in a composite or nullable CountableValueRange.
        Returns:
        the exact number of elements generated by this CountableValueRange, always >= 0
      • get

        T get​(long index)
        Used by uniform random selection in a composite or nullable CountableValueRange.
        Parameters:
        index - always < getSize()
        Returns:
        sometimes null (if PlanningVariable.nullable() is true)
      • createOriginalIterator

        Iterator<T> createOriginalIterator()
        Select the elements in original (natural) order.
        Returns:
        never null