Package net.automatalib.alphabet
Class MapAlphabet<I>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<I>
-
- net.automatalib.alphabet.AbstractAlphabet<I>
-
- net.automatalib.alphabet.MapAlphabet<I>
-
- Type Parameters:
I- input symbol type
- All Implemented Interfaces:
Iterable<I>,Collection<I>,Comparator<I>,IntFunction<I>,ToIntFunction<I>,List<I>,Alphabet<I>,ArrayWritable<I>
- Direct Known Subclasses:
DefaultProceduralOutputAlphabet,GrowingMapAlphabet
public class MapAlphabet<I> extends AbstractAlphabet<I>
-
-
Constructor Summary
Constructors Constructor Description MapAlphabet(Collection<? extends I> symbols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsSymbol(I symbol)IgetSymbol(int index)intgetSymbolIndex(I symbol)intsize()-
Methods inherited from class net.automatalib.alphabet.AbstractAlphabet
get, reversed
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.automatalib.alphabet.Alphabet
apply, applyAsInt, compare, translateFrom, writeToArray
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.Comparator
equals, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
MapAlphabet
public MapAlphabet(Collection<? extends I> symbols)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceArrayWritable<I>- Specified by:
sizein interfaceCollection<I>- Specified by:
sizein interfaceList<I>- Specified by:
sizein classAbstractCollection<I>
-
getSymbol
public I getSymbol(int index)
-
getSymbolIndex
public int getSymbolIndex(I symbol)
-
containsSymbol
public boolean containsSymbol(I symbol)
-
-