Class AbstractComparativeField

java.lang.Object
com.singularsys.extensions.field.AbstractComparativeField
All Implemented Interfaces:
FieldI, Serializable
Direct Known Subclasses:
ComplexFieldWithTotalOrder, ExtDocsTest.StringField2, GenericField, StringField

public abstract class AbstractComparativeField extends Object implements FieldI
An abstract base class for fields where comparison methods are implemented using a single cmp(a,b) method. Subclasses just need to implement a single method and not the full set of comparison methods.

Not all types want to extend this class, for instance with doubles it fails to work with NaN values.

Since Jep 4.1 extensions 2.2 this has been moved to the com.singularsys.extensions.field.implementations package from the the com.singularsys.extensions.field package.

See Also:
  • Constructor Details

    • AbstractComparativeField

      public AbstractComparativeField()
  • Method Details