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

public final Class SingletonEdgeMap<T>

extends AbstractEdgeMap<T>
Class Inheritance
Imports
java.util.Collections, .Iterator, .Map, .NoSuchElementException, .Set

Author
Sam Harwell

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class

Field Summary

Modifier and TypeField and Description
private final int
private final T
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap:
maxIndexminIndex

Constructor Summary

AccessConstructor and Description
public
SingletonEdgeMap(int minIndex, int maxIndex, int key, T value)

Method Summary

Modifier and TypeMethod and Description
public AbstractEdgeMap<T>
public boolean
public Set<Map.Entry<Integer, T>>
public T
public int
public T
public boolean
public AbstractEdgeMap<T>
public AbstractEdgeMap<T>
public int
public Map<Integer, T>
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap:
putAll

Field Detail

keyback to summary
private final int key
valueback to summary
private final T value

Constructor Detail

SingletonEdgeMapback to summary
public SingletonEdgeMap(int minIndex, int maxIndex, int key, T value)

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
getKeyback to summary
public int getKey()
getValueback to summary
public T getValue()
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 AbstractEdgeMap<T> remove(int key)

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

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

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
org.antlr.v4.runtime.dfa back to summary

private Class SingletonEdgeMap.EntryIterator

extends Object
implements Iterator<Map.Entry<Integer, T>>
Class Inheritance
All Implemented Interfaces
java.util.Iterator

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
public Map.Entry<Integer, T>
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
public void
remove()

Overrides default java.util.Iterator.remove.

Removes from the underlying collection the last element returned by this iterator (optional operation).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentback to summary
private int current

Constructor Detail

EntryIteratorback to summary
private EntryIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
nextback to summary
public Map.Entry<Integer, T> next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:Map.Entry<Integer, T>

the next element in the iteration

Annotations
@Override
removeback to summary
public void remove()

Overrides default java.util.Iterator.remove.

Doc from java.util.Iterator.remove.

Removes from the underlying collection the last element returned by this iterator (optional operation). This method can be called only once per call to next.

The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.

The behavior of an iterator is unspecified if this method is called after a call to the forEachRemaining method.

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

private Class SingletonEdgeMap.EntrySet

extends AbstractEdgeMap<T>.AbstractEntrySet
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Iterator<Map.Entry<Integer, T>>
iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Returns an iterator over the elements in this set.
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap.AbstractEntrySet:
containssize

Constructor Detail

EntrySetback to summary
private EntrySet()

Method Detail

iteratorback to summary
public Iterator<Map.Entry<Integer, T>> iterator()

Implements abstract java.util.AbstractCollection.iterator.

Implements java.util.Set.iterator, java.util.Collection.iterator.

Doc from java.util.Set.iterator.

Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).

Returns:Iterator<Map.Entry<Integer, T>>

an iterator over the elements in this set

Annotations
@Override