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 |
|---|---|
I |
getSymbol(int index) |
int |
getSymbolIndex(I symbol) |
int |
size() |
void |
writeToArray(int offset,
Object[] array,
int tgtOfs,
int num) |
compare, getadd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArrayequals@SafeVarargs public ArrayAlphabet(I... symbols)
public I getSymbol(int index) throws IllegalArgumentException
IllegalArgumentExceptionpublic int getSymbolIndex(I symbol) throws IllegalArgumentException
IllegalArgumentExceptionpublic int size()
size in interface Collection<I>size in interface List<I>size in interface ArrayWritable<I>size in class AbstractCollection<I>public void writeToArray(int offset, Object[] array, int tgtOfs, int num)
writeToArray in interface ArrayWritable<I>writeToArray in class AbstractAlphabet<I>Copyright © 2013. All Rights Reserved.