public abstract class AbstractAlphabet<I> extends AbstractList<I> implements Alphabet<I>
modCount
Constructor and Description |
---|
AbstractAlphabet() |
Modifier and Type | Method and Description |
---|---|
int |
compare(I o1,
I o2) |
I |
get(int index) |
void |
writeToArray(int offset,
Object[] array,
int tgtOfs,
int num)
Writes the contents of this container to an array.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSymbol, getSymbolIndex
size
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
public AbstractAlphabet()
public void writeToArray(int offset, Object[] array, int tgtOfs, int num)
ArrayWritable
System.arraycopy(this.toArray(), offset, array, tgtOfs, num);
writeToArray
in interface ArrayWritable<I>
offset
- how many elements of this container to skip.array
- the array in which to store the elements.tgtOfs
- the starting offset in the target array.num
- the maximum number of elements to copy.Copyright © 2015. All Rights Reserved.