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) |
boolean |
containsSymbol(E symbol) |
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, finalize, getClass, notify, notifyAll, wait, wait, waitapply, applyAsInt, 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, toArraypublic int getSymbolIndex(E symbol) throws IllegalArgumentException
getSymbolIndex in interface Alphabet<E extends Enum<E>>getSymbolIndex in class ArrayAlphabet<E extends Enum<E>>IllegalArgumentExceptionpublic boolean containsSymbol(E symbol)
containsSymbol in interface Alphabet<E extends Enum<E>>containsSymbol in class ArrayAlphabet<E extends Enum<E>>Copyright © 2015. All Rights Reserved.