it.unimi.dsi.mg4j.compression
Class CodedCharSequenceBooleanIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
      extended by 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.


Constructor Summary
CodedCharSequenceBooleanIterator(CharSequence s, PrefixCoder prefixCoder, Char2IntMap char2code)
          Deprecated. Creates a new boolean iterator over a character sequence.
 
Method Summary
 boolean hasNext()
          Deprecated.  
 boolean nextBoolean()
          Deprecated.  
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
next, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

hasNext

public boolean hasNext()
Deprecated. 

nextBoolean

public boolean nextBoolean()
Deprecated. 
Specified by:
nextBoolean in interface BooleanIterator
Overrides:
nextBoolean in class AbstractBooleanIterator