public class EnumAlphabet<E extends Enum<E>> extends ArrayAlphabet<E>
symbolsmodCount| Constructor and Description |
|---|
EnumAlphabet(Class<E> enumClazz,
boolean withNull) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(E o1,
E o2) |
int |
getSymbolIndex(E symbol) |
getSymbol, size, writeToArraygetadd, 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, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArrayequalspublic EnumAlphabet(Class<E> enumClazz, boolean withNull)
public int getSymbolIndex(E symbol) throws IllegalArgumentException
getSymbolIndex in interface Alphabet<E extends Enum<E>>getSymbolIndex in class ArrayAlphabet<E extends Enum<E>>IllegalArgumentExceptionCopyright © 2013. All Rights Reserved.