I
- input symbol typepublic class GrowingMapAlphabet<I> extends MapAlphabet<I> implements GrowingAlphabet<I>
MapAlphabet
that also allows adding new symbol after construction.indexMap, symbols
modCount
Constructor and Description |
---|
GrowingMapAlphabet() |
GrowingMapAlphabet(Collection<? extends I> symbols) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(I a) |
int |
addSymbol(I a)
Adds a new symbol to the alphabet.
|
containsSymbol, getSymbol, getSymbolIndex, size
get
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
apply, applyAsInt, compare, containsSymbol, getSymbol, getSymbolIndex, translateFrom, writeToArray
size
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
public GrowingMapAlphabet()
public GrowingMapAlphabet(Collection<? extends I> symbols)
public boolean add(I a)
add
in interface Collection<I>
add
in interface List<I>
add
in class AbstractList<I>
public int addSymbol(I a)
GrowingAlphabet
addSymbol
in interface GrowingAlphabet<I>
Copyright © 2020. All rights reserved.