Class RestrictedValueSortedMap.RestrictedSortedList

java.lang.Object
ghidra.generic.util.datastruct.RestrictedValueSortedMap.RestrictedSortedList
All Implemented Interfaces:
SortedList<V>, Iterable<V>, Collection<V>, List<V>
Enclosing class:
RestrictedValueSortedMap<K,V>

public class RestrictedValueSortedMap.RestrictedSortedList extends Object implements SortedList<V>
  • Constructor Details

    • RestrictedSortedList

      public RestrictedSortedList()
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface Collection<V>
      Specified by:
      size in interface List<V>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<V>
      Specified by:
      isEmpty in interface List<V>
    • contains

      public boolean contains(Object o)
      Specified by:
      contains in interface Collection<V>
      Specified by:
      contains in interface List<V>
    • iterator

      public Iterator<V> iterator()
      Specified by:
      iterator in interface Collection<V>
      Specified by:
      iterator in interface Iterable<V>
      Specified by:
      iterator in interface List<V>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<V>
      Specified by:
      toArray in interface List<V>
    • toArray

      public <T> T[] toArray(T[] a)
      Specified by:
      toArray in interface Collection<V>
      Specified by:
      toArray in interface List<V>
    • add

      public boolean add(V e)
      Specified by:
      add in interface Collection<V>
      Specified by:
      add in interface List<V>
    • remove

      public boolean remove(Object o)
      Specified by:
      remove in interface Collection<V>
      Specified by:
      remove in interface List<V>
    • containsAll

      public boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<V>
      Specified by:
      containsAll in interface List<V>
    • addAll

      public boolean addAll(Collection<? extends V> c)
      Specified by:
      addAll in interface Collection<V>
      Specified by:
      addAll in interface List<V>
    • addAll

      public boolean addAll(int index, Collection<? extends V> c)
      Specified by:
      addAll in interface List<V>
    • removeAll

      public boolean removeAll(Collection<?> c)
      Specified by:
      removeAll in interface Collection<V>
      Specified by:
      removeAll in interface List<V>
    • retainAll

      public boolean retainAll(Collection<?> c)
      Specified by:
      retainAll in interface Collection<V>
      Specified by:
      retainAll in interface List<V>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<V>
      Specified by:
      clear in interface List<V>
    • get

      public V get(int index)
      Specified by:
      get in interface List<V>
    • set

      public V set(int index, V element)
      Specified by:
      set in interface List<V>
    • add

      public void add(int index, V element)
      Specified by:
      add in interface List<V>
    • remove

      public V remove(int index)
      Specified by:
      remove in interface List<V>
    • indexOf

      public int indexOf(Object o)
      Specified by:
      indexOf in interface List<V>
    • lastIndexOf

      public int lastIndexOf(Object o)
      Specified by:
      lastIndexOf in interface List<V>
    • listIterator

      public ListIterator<V> listIterator()
      Specified by:
      listIterator in interface List<V>
    • listIterator

      public ListIterator<V> listIterator(int index)
      Specified by:
      listIterator in interface List<V>
    • subList

      public List<V> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<V>
    • lowerIndex

      public int lowerIndex(V element)
      Description copied from interface: SortedList
      Returns the greatest index in this list whose element is strictly less than the specified element
      Specified by:
      lowerIndex in interface SortedList<V>
      Parameters:
      element - the element to search for
      Returns:
      the index of the found element, or -1
    • floorIndex

      public int floorIndex(V element)
      Description copied from interface: SortedList
      Returns the greatest index in this list whose element is less than or equal to the specified element

      If multiples of the specified element exist, this returns the least index of that element.

      Specified by:
      floorIndex in interface SortedList<V>
      Parameters:
      element - the element to search for
      Returns:
      the index of the found element, or -1
    • ceilingIndex

      public int ceilingIndex(V element)
      Description copied from interface: SortedList
      Returns the least index in this list whose element is greater than or equal to the specified element

      If multiples of the specified element exist, this returns the greatest index of that element.

      Specified by:
      ceilingIndex in interface SortedList<V>
      Parameters:
      element - the element to search for
      Returns:
      the index of the found element, or -1
    • higherIndex

      public int higherIndex(V element)
      Description copied from interface: SortedList
      Returns the least index in this list whose element is strictly greater the specified element
      Specified by:
      higherIndex in interface SortedList<V>
      Parameters:
      element - the element to search for
      Returns:
      the index of the found element, or -1