edu.ksu.cis.projects.bogor.module.value
Interface IComparablePrimitiveExtValue

All Superinterfaces:
Comparable<IValue>, Disposable, IExtValue, IPrimitiveExtValue, IPrimitiveValue, IValue, Serializable

public interface IComparablePrimitiveExtValue
extends IPrimitiveExtValue

An interface to indicate a comparable primitive extension value.

Version:
CVS $Revision: 1.4 $ $Date: 2005/06/06 19:15:31 $
Author:
Robby

Method Summary
 IComparablePrimitiveExtValue clone(Map<Object,Object> cloneMap)
          Override to specialize return type
 int compare(IValueComparator vc, IComparablePrimitiveExtValue other)
          Compares this value with another value using a given value comparator.
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.value.IPrimitiveExtValue
copy, equals, getExternalRepresentation, linearize
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.value.IValue
equals, getType, getTypeId, hashCode, toString, validate
 
Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable
dispose
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.value.IExtValue
visit
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.value.IValue
equals, getType, getTypeId, hashCode, toString, validate
 
Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable
dispose
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

compare

int compare(IValueComparator vc,
            IComparablePrimitiveExtValue other)
Compares this value with another value using a given value comparator.

Parameters:
vc - The value comparator to use. Must be non-null.
other - The value to compare against. Must be non-null.
Returns:
-1, if this value is "less" than the other value. 0, if this value is "equal" to the other value, or if the ordering of the two values cannot be determined. 1, if this value is "greater" than the other value.

clone

IComparablePrimitiveExtValue clone(Map<Object,Object> cloneMap)
Override to specialize return type

Specified by:
clone in interface IPrimitiveExtValue
Specified by:
clone in interface IPrimitiveValue
Specified by:
clone in interface IValue
Parameters:
cloneMap - Original values (IValue) to their clones ( IValue) mapping. The clone map to solve circular references in values. If this value is a key in the map, then this method returns the value of the key in the map. Must be non-null.
Returns:
The clone of this value. Non-null.