org.planx.msd.number
Class ShortDiscriminator

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

public class ShortDiscriminator
extends NumberDiscriminator<Short>

A Discriminator capable of discriminating a multiset of Short 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
ShortDiscriminator(Memory memory)
          Constructs a new ShortDiscriminator that reuses the memory of the specified 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 Short,?> 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

ShortDiscriminator

public ShortDiscriminator(Memory memory)
Constructs a new ShortDiscriminator that reuses the memory of the specified 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<Short>

chunkExtractor

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

Specified by:
chunkExtractor in class NumberDiscriminator<Short>


Copyright © 2010. All Rights Reserved.