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

public final Class ArrayEdgeMap<T>

extends AbstractEdgeMap<T>
Class Inheritance
Imports
java.util.Collections, .Iterator, .LinkedHashMap, .List, .Map, .NoSuchElementException, .Set, java.util.concurrent.atomic.AtomicInteger, .AtomicIntegerArray, .AtomicReferenceArray

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 AtomicReferenceArray<T>
private final AtomicInteger
Inherited from org.antlr.v4.runtime.dfa.AbstractEdgeMap:
maxIndexminIndex

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public EmptyEdgeMap<T>
public boolean
public Set<Map.Entry<Integer, T>>
public T
public boolean
public ArrayEdgeMap<T>
public ArrayEdgeMap<T>
public ArrayEdgeMap<T>
public int
public Map<Integer, T>

Field Detail

arrayDataback to summary
private final AtomicReferenceArray<T> arrayData
sizeback to summary
private final AtomicInteger size

Constructor Detail

ArrayEdgeMapback to summary
public ArrayEdgeMap(int minIndex, int maxIndex)
Annotations
@SuppressWarnings:unchecked

Method Detail

clearback to summary
public EmptyEdgeMap<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
isEmptyback to summary
public boolean isEmpty()

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

Annotations
@Override
putback to summary
public ArrayEdgeMap<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
putAllback to summary
public ArrayEdgeMap<T> putAll(EdgeMap<? extends T> m)

Overrides org.antlr.v4.runtime.dfa.AbstractEdgeMap.putAll.

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

Annotations
@Override
@SuppressWarnings:deprecation
removeback to summary
public ArrayEdgeMap<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 ArrayEdgeMap.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

currentIndexback to summary
private int currentIndex

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 ArrayEdgeMap.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