Interface OrdinalSetMapping<T>

    • Method Detail

      • getMappedIndex

        int getMappedIndex​(Object o)
        Returns:
        the number of a given object, or -1 if the object is not currently in the range.
      • hasMappedIndex

        boolean hasMappedIndex​(T o)
        Returns:
        whether the given object is mapped by this mapping
      • getMaximumIndex

        int getMaximumIndex()
        Returns:
        the maximum integer mapped to an object
      • getSize

        int getSize()
        Returns:
        the current size of the bijection
      • add

        int add​(T o)
        Add an Object to the set of mapped objects.
        Returns:
        the integer to which the object is mapped.