edu.unh.sdb.common
Class RangedType

java.lang.Object
  extended by edu.unh.sdb.common.Type
      extended by edu.unh.sdb.common.UserType
          extended by edu.unh.sdb.common.RangedType

public class RangedType
extends UserType


Field Summary
 
Fields inherited from class edu.unh.sdb.common.UserType
storageType
 
Fields inherited from class edu.unh.sdb.common.Type
name
 
Constructor Summary
RangedType(java.lang.String name, int storageType, double lo, double hi)
           
RangedType(java.lang.String name, int storageType, long lo, long hi)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equivalent(RangedType r)
          Returns true if the argument is structurally equivalent to this RangedType, false otherwise.
 double getHighValue()
           
 double getLowValue()
           
 int getStorageType()
           
 java.lang.String toString()
          Return a representation of this object as a nicely formatted String.
 
Methods inherited from class edu.unh.sdb.common.Type
getName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangedType

public RangedType(java.lang.String name,
                  int storageType,
                  double lo,
                  double hi)

RangedType

public RangedType(java.lang.String name,
                  int storageType,
                  long lo,
                  long hi)
Method Detail

getLowValue

public double getLowValue()

getHighValue

public double getHighValue()

getStorageType

public int getStorageType()
Overrides:
getStorageType in class UserType

equivalent

public boolean equivalent(RangedType r)
Returns true if the argument is structurally equivalent to this RangedType, false otherwise.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class UserType

toString

public java.lang.String toString()
Return a representation of this object as a nicely formatted String.

Overrides:
toString in class UserType