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

public abstract Class AbstractEdgeMap<T>

extends Object
implements EdgeMap<T>
Class Inheritance
All Implemented Interfaces
org.antlr.v4.runtime.dfa.EdgeMap
Known Direct Subclasses
org.antlr.v4.runtime.dfa.ArrayEdgeMap, org.antlr.v4.runtime.dfa.EmptyEdgeMap, org.antlr.v4.runtime.dfa.HashEdgeMap, org.antlr.v4.runtime.dfa.SingletonEdgeMap, org.antlr.v4.runtime.dfa.SparseEdgeMap
Imports
java.util.AbstractSet, .Map

Author
Sam Harwell

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected abstract class

Field Summary

Modifier and TypeField and Description
protected final int
protected final int

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public abstract AbstractEdgeMap<T>
public abstract AbstractEdgeMap<T>
put(int key, T value)

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

public AbstractEdgeMap<T>
public abstract AbstractEdgeMap<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxIndexback to summary
protected final int maxIndex
minIndexback to summary
protected final int minIndex

Constructor Detail

AbstractEdgeMapback to summary
public AbstractEdgeMap(int minIndex, int maxIndex)

Method Detail

clearback to summary
public abstract AbstractEdgeMap<T> clear()

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

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

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

Annotations
@Override
putAllback to summary
public AbstractEdgeMap<T> putAll(EdgeMap<? extends T> m)

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

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

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

Annotations
@Override
org.antlr.v4.runtime.dfa back to summary

protected abstract Class AbstractEdgeMap.AbstractEntrySet

extends AbstractSet<Map.Entry<Integer, T>>
Class Inheritance
Known Direct Subclasses
org.antlr.v4.runtime.dfa.ArrayEdgeMap.EntrySet, org.antlr.v4.runtime.dfa.SingletonEdgeMap.EntrySet

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(Object
element whose presence in this set is to be tested
o
)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Returns true if this set contains the specified element.
public int
size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Returns the number of elements in this set (its cardinality).
Inherited from java.util.AbstractSet:
equalshashCoderemoveAll

Constructor Detail

AbstractEntrySetback to summary
protected AbstractEntrySet()

Method Detail

containsback to summary
public boolean contains(Object o)

Overrides java.util.AbstractCollection.contains.

Implements java.util.Set.contains, java.util.Collection.contains.

Doc from java.util.Set.contains.

Returns true if this set contains the specified element. More formally, returns true if and only if this set contains an element e such that Objects.equals(o, e).

Parameters
o:Object

element whose presence in this set is to be tested

Returns:boolean

true if this set contains the specified element

Annotations
@Override
sizeback to summary
public int size()

Implements abstract java.util.AbstractCollection.size.

Implements java.util.Set.size, java.util.Collection.size.

Doc from java.util.Set.size.

Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:int

the number of elements in this set (its cardinality)

Annotations
@Override