Interface IndexedNavigableSet<E>

All Superinterfaces:
Collection<E>, Iterable<E>, NavigableSet<E>, Set<E>, SortedSet<E>
All Known Implementing Classes:
IndexedTreeSet

public interface IndexedNavigableSet<E> extends NavigableSet<E>
User: Vitaly Sazanovich Date: 08/02/13 Time: 09:56 Email: Vitaly.Sazanovich@gmail.com
  • Method Details

    • exact

      E exact(int index)
      Returns the entry located at the index offset from the beginning of the sorted set
      Parameters:
      index - index of the entry
      Returns:
      the entry located at the index (@code index) offset from the beginning of the sorted set
      Throws:
      ArrayIndexOutOfBoundsException - if the specified index is less than 0 or greater than size-1
    • entryIndex

      int entryIndex(E e)
      Searches the specified tree map for the specified entry using the put algorithm. Calculates its offset from the beginning of the sorted map using weights.
      Parameters:
      e - the entry
      Returns:
      index of the searched entry, if it is contained in the tree map; otherwise a NullPointerException is thrown
      Throws:
      NullPointerException - if the specified entry is null or does not exist