Class SparseEdgeMap<T>

java.lang.Object
org.antlr.v4.runtime.dfa.AbstractEdgeMap<T>
org.antlr.v4.runtime.dfa.SparseEdgeMap<T>
All Implemented Interfaces:
EdgeMap<T>

@Deprecated public final class SparseEdgeMap<T> extends AbstractEdgeMap<T>
Deprecated.
Use HashEdgeMap instead.
  • Field Details

    • DEFAULT_MAX_SIZE

      private static final int DEFAULT_MAX_SIZE
      Deprecated.
      See Also:
    • keys

      private final int[] keys
      Deprecated.
    • values

      private final List<T> values
      Deprecated.
  • Constructor Details

    • SparseEdgeMap

      public SparseEdgeMap(int minIndex, int maxIndex)
      Deprecated.
    • SparseEdgeMap

      public SparseEdgeMap(int minIndex, int maxIndex, int maxSparseSize)
      Deprecated.
    • SparseEdgeMap

      private SparseEdgeMap(@NotNull SparseEdgeMap<T> map, int maxSparseSize)
      Deprecated.
  • Method Details

    • getKeys

      public final int[] getKeys()
      Deprecated.
    • getValues

      public final List<T> getValues()
      Deprecated.
    • getMaxSparseSize

      public final int getMaxSparseSize()
      Deprecated.
    • size

      public int size()
      Deprecated.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
    • containsKey

      public boolean containsKey(int key)
      Deprecated.
    • get

      public T get(int key)
      Deprecated.
    • put

      public AbstractEdgeMap<T> put(int key, T value)
      Deprecated.
      Specified by:
      put in interface EdgeMap<T>
      Specified by:
      put in class AbstractEdgeMap<T>
    • remove

      public SparseEdgeMap<T> remove(int key)
      Deprecated.
      Specified by:
      remove in interface EdgeMap<T>
      Specified by:
      remove in class AbstractEdgeMap<T>
    • clear

      public AbstractEdgeMap<T> clear()
      Deprecated.
      Specified by:
      clear in interface EdgeMap<T>
      Specified by:
      clear in class AbstractEdgeMap<T>
    • toMap

      public Map<Integer,T> toMap()
      Deprecated.
    • entrySet

      public Set<Map.Entry<Integer,T>> entrySet()
      Deprecated.