Class TokenVector
- All Implemented Interfaces:
Iterable<Token>, Collection<Token>, List<Token>, RandomAccess, SequencedCollection<Token>
-
Constructor Summary
ConstructorsConstructorDescriptionTokenVector(int count, Token value) TokenVector(Token[] initialElements) TokenVector(TokenVector other) TokenVector(Iterable<Token> initialElements) -
Method Summary
Methods inherited from class AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
TokenVector
-
TokenVector
-
TokenVector
public TokenVector() -
TokenVector
-
TokenVector
-
-
Method Details
-
delete
public void delete() -
get
-
set
-
add
- Specified by:
addin interfaceCollection<Token>- Specified by:
addin interfaceList<Token>- Overrides:
addin classAbstractList<Token>
-
add
-
remove
-
size
public int size()- Specified by:
sizein interfaceCollection<Token>- Specified by:
sizein interfaceList<Token>- Specified by:
sizein classAbstractCollection<Token>
-
capacity
public int capacity() -
reserve
public void reserve(int n) -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Token>- Specified by:
isEmptyin interfaceList<Token>- Overrides:
isEmptyin classAbstractCollection<Token>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Token>- Specified by:
clearin interfaceList<Token>- Overrides:
clearin classAbstractList<Token>
-