org.hypergraphdb.type.javaprimitive
Class NumericTypeBase<T>

java.lang.Object
  extended by org.hypergraphdb.type.javaprimitive.PrimitiveTypeBase<T>
      extended by org.hypergraphdb.type.javaprimitive.NumericTypeBase<T>
All Implemented Interfaces:
java.util.Comparator<byte[]>, HGGraphHolder, HGOrderedSearchable<T,HGPersistentHandle>, HGSearchable<T,HGPersistentHandle>, ByteArrayConverter<T>, HGAtomType, HGPrimitiveType<T>
Direct Known Subclasses:
ByteType, CharType, IntType, LongType, ShortType

public abstract class NumericTypeBase<T>
extends PrimitiveTypeBase<T>

Author:
User

Nested Class Summary
static class NumericTypeBase.NumericComparator
           
 
Constructor Summary
NumericTypeBase()
           
 
Method Summary
 java.util.Comparator<byte[]> getComparator()
          Return a java.util.Comparator instance that provides an order relation of the values of the primitive type.
 
Methods inherited from class org.hypergraphdb.type.javaprimitive.PrimitiveTypeBase
compare, find, findGT, findGTE, findLT, findLTE, fromByteArray, getRefCountFor, make, release, setHyperGraph, store, subsumes, toByteArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NumericTypeBase

public NumericTypeBase()
Method Detail

getComparator

public java.util.Comparator<byte[]> getComparator()
Description copied from interface: HGPrimitiveType
Return a java.util.Comparator instance that provides an order relation of the values of the primitive type. An implementation is allowed to return null in which case it is assumed that the type does not offer an ordering relation. However, if a non-null value is returned, it is must be of a publicly available and default constructible class.