org.planx.msd.number
Class ByteDiscriminator

java.lang.Object
  extended by org.planx.msd.util.AbstractDiscriminator<T>
      extended by org.planx.msd.number.NumberDiscriminator<Byte>
          extended by org.planx.msd.number.ByteDiscriminator
All Implemented Interfaces:
Discriminator<Byte>

public class ByteDiscriminator
extends NumberDiscriminator<Byte>

A Discriminator capable of discriminating a multiset of Byte objects.

Author:
Thomas Ambus

Nested Class Summary
 
Nested classes/interfaces inherited from class org.planx.msd.number.NumberDiscriminator
NumberDiscriminator.ChunkExtractor<U>
 
Field Summary
 
Fields inherited from class org.planx.msd.number.NumberDiscriminator
CHUNK_BITSIZE, CHUNK_MASK, memory
 
Constructor Summary
ByteDiscriminator(Memory memory)
           
 
Method Summary
protected  int bitsize()
          Returns the total bitsize of the specific type of number.
protected
<U> NumberDiscriminator.ChunkExtractor<U>
chunkExtractor(Extractor<U,? extends Byte,?> e)
          returns a ChunkExtractor for the specific type of number.
 
Methods inherited from class org.planx.msd.number.NumberDiscriminator
discriminate
 
Methods inherited from class org.planx.msd.util.AbstractDiscriminator
discriminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteDiscriminator

public ByteDiscriminator(Memory memory)
Method Detail

bitsize

protected int bitsize()
Description copied from class: NumberDiscriminator
Returns the total bitsize of the specific type of number.

Specified by:
bitsize in class NumberDiscriminator<Byte>

chunkExtractor

protected <U> NumberDiscriminator.ChunkExtractor<U> chunkExtractor(Extractor<U,? extends Byte,?> e)
Description copied from class: NumberDiscriminator
returns a ChunkExtractor for the specific type of number.

Specified by:
chunkExtractor in class NumberDiscriminator<Byte>


Copyright © 2010. All Rights Reserved.