org.planx.msd.number
Class NumberDiscriminator.ChunkExtractor<U>
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
offset
protected int offset
e
protected Extractor<U,? extends T,?> e
NumberDiscriminator.ChunkExtractor
protected NumberDiscriminator.ChunkExtractor(Extractor<U,? extends T,?> e)
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.