public class ArrayAlphabet<I> extends AbstractAlphabet<I>
| Modifier and Type | Field and Description |
|---|---|
protected I[] |
symbols |
modCount| Constructor and Description |
|---|
ArrayAlphabet(I... symbols) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSymbol(I symbol) |
I |
getSymbol(int index) |
int |
getSymbolIndex(I symbol) |
int |
size() |
void |
writeToArray(int offset,
Object[] array,
int tgtOfs,
int num) |
getadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitapply, applyAsInt, compare, translateFromadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraycomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayprotected final I[] symbols
@SafeVarargs public ArrayAlphabet(I... symbols)
public I getSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getSymbolIndex(I symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic void writeToArray(int offset,
Object[] array,
int tgtOfs,
int num)
public boolean containsSymbol(I symbol)
public int size()
size in interface Collection<I>size in interface List<I>size in interface ArrayWritable<I>size in class AbstractCollection<I>Copyright © 2019. All rights reserved.