Top Fields Constructors Methods
org.antlr.v4.runtime.dfa

public final Class SparseEdgeMap<T>

extends AbstractEdgeMap<T>
Class Inheritance
Annotations
@Deprecated
Imports
org.antlr.v4.runtime.misc.NotNull, java.util.ArrayList, .Arrays, .Collections, .LinkedHashMap, .List, .Map, .Set

Deprecated

Use HashEdgeMap instead.

Author
Sam Harwell

Field Summary

Modifier and TypeField and Description
private static final int
private final int[]
private final List<T>
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap:
maxIndexminIndex

Constructor Summary

AccessConstructor and Description
public
SparseEdgeMap(int minIndex, int maxIndex)

public
SparseEdgeMap(int minIndex, int maxIndex, int maxSparseSize)

private
SparseEdgeMap(SparseEdgeMap<T> map, int maxSparseSize)

Deprecated as a consequence of SparseEdgeMap being deprecated.

Method Summary

Modifier and TypeMethod and Description
public AbstractEdgeMap<T>
public boolean
public Set<Map.Entry<Integer, T>>
public T
public final int[]
public final int
public final List<T>
public boolean
public AbstractEdgeMap<T>
public SparseEdgeMap<T>
remove(int key)

Implements abstract org.antlr.v4.runtime.dfa.AbstractEdgeMap.remove.

Implements org.antlr.v4.runtime.dfa.EdgeMap.remove.

Deprecated as a consequence of SparseEdgeMap being deprecated.
public int
public Map<Integer, T>
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap:
putAll

Field Detail

DEFAULT_MAX_SIZEback to summary
private static final int DEFAULT_MAX_SIZE
keysback to summary
private final int[] keys
valuesback to summary
private final List<T> values

Constructor Detail

SparseEdgeMapback to summary
public SparseEdgeMap(int minIndex, int maxIndex)
SparseEdgeMapback to summary
public SparseEdgeMap(int minIndex, int maxIndex, int maxSparseSize)
SparseEdgeMapback to summary
private SparseEdgeMap(SparseEdgeMap<T> map, int maxSparseSize)

Deprecated

as a consequence of SparseEdgeMap being deprecated. See corresponding docs for further information.

Method Detail

clearback to summary
public AbstractEdgeMap<T> clear()

Implements abstract org.antlr.v4.runtime.dfa.AbstractEdgeMap.clear.

Implements org.antlr.v4.runtime.dfa.EdgeMap.clear.

Annotations
@Override
containsKeyback to summary
public boolean containsKey(int key)

Implements org.antlr.v4.runtime.dfa.EdgeMap.containsKey.

Annotations
@Override
entrySetback to summary
public Set<Map.Entry<Integer, T>> entrySet()

Implements org.antlr.v4.runtime.dfa.EdgeMap.entrySet.

Annotations
@Override
getback to summary
public T get(int key)

Implements org.antlr.v4.runtime.dfa.EdgeMap.get.

Annotations
@Override
getKeysback to summary
public final int[] getKeys()
getMaxSparseSizeback to summary
public final int getMaxSparseSize()
getValuesback to summary
public final List<T> getValues()
isEmptyback to summary
public boolean isEmpty()

Implements org.antlr.v4.runtime.dfa.EdgeMap.isEmpty.

Annotations
@Override
putback to summary
public AbstractEdgeMap<T> put(int key, T value)

Implements abstract org.antlr.v4.runtime.dfa.AbstractEdgeMap.put.

Implements org.antlr.v4.runtime.dfa.EdgeMap.put.

Annotations
@Override
removeback to summary
public SparseEdgeMap<T> remove(int key)

Implements abstract org.antlr.v4.runtime.dfa.AbstractEdgeMap.remove.

Implements org.antlr.v4.runtime.dfa.EdgeMap.remove.

Deprecated

as a consequence of SparseEdgeMap being deprecated. See corresponding docs for further information.

Annotations
@Override
sizeback to summary
public int size()

Implements org.antlr.v4.runtime.dfa.EdgeMap.size.

Annotations
@Override
toMapback to summary
public Map<Integer, T> toMap()

Implements org.antlr.v4.runtime.dfa.EdgeMap.toMap.

Annotations
@Override