org.planx.msd.number
Class NumberDiscriminator.ChunkExtractor<U>

java.lang.Object
  extended by org.planx.msd.number.NumberDiscriminator.ChunkExtractor<U>
All Implemented Interfaces:
IntExtractor<U,U>
Enclosing class:
NumberDiscriminator<T>

protected abstract class NumberDiscriminator.ChunkExtractor<U>
extends Object
implements IntExtractor<U,U>

A ChunkExtractor is capable of extracting an integer chunk of bitsize CHUNK_BITSIZE beginning from the offset set by setOffset from the type U.


Field Summary
protected  Extractor<U,? extends T,?> e
           
protected  int offset
           
 
Constructor Summary
protected NumberDiscriminator.ChunkExtractor(Extractor<U,? extends T,?> e)
           
 
Method Summary
abstract  int getLabel(U elm)
           
 U getValue(U elm)
           
 void setOffset(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

protected int offset

e

protected Extractor<U,? extends T,?> e
Constructor Detail

NumberDiscriminator.ChunkExtractor

protected NumberDiscriminator.ChunkExtractor(Extractor<U,? extends T,?> e)
Method Detail

setOffset

public void setOffset(int offset)

getLabel

public abstract int getLabel(U elm)
Specified by:
getLabel in interface IntExtractor<U,U>

getValue

public U getValue(U elm)
Specified by:
getValue in interface IntExtractor<U,U>


Copyright © 2010. All Rights Reserved.