it.unimi.dsi.mg4j.compression
Class CodedCharSequenceBooleanIterator
java.lang.Object
it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
it.unimi.dsi.mg4j.compression.CodedCharSequenceBooleanIterator
- All Implemented Interfaces:
- BooleanIterator, Iterator<Boolean>
Deprecated. Moved to dsiutils
.
@Deprecated
public class CodedCharSequenceBooleanIterator
- extends AbstractBooleanIterator
A wrapper for character sequences that exposes them as a boolean iterators
returning the bits obtained coding the sequence, using
a given map from character to symbols in a prefix coder.
This class is very lightweight: it just scans the string, concatenating
lazily the bits of each codeword.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodedCharSequenceBooleanIterator
public CodedCharSequenceBooleanIterator(CharSequence s,
PrefixCoder prefixCoder,
Char2IntMap char2code)
- Deprecated.
- Creates a new boolean iterator over a character sequence.
- Parameters:
s
- a character sequence.prefixCoder
- a prefix coder that is able to code the characters in s
, or possibly null
if
s
is empty.char2code
- the map from characters in s
to symbols in coder
.
hasNext
public boolean hasNext()
- Deprecated.
nextBoolean
public boolean nextBoolean()
- Deprecated.
- Specified by:
nextBoolean
in interface BooleanIterator
- Overrides:
nextBoolean
in class AbstractBooleanIterator