Class RelationBean
- All Implemented Interfaces:
GenerateUniqueParameterization
- Direct Known Subclasses:
EqualToBean
,GreaterThanBean
,GreaterThanEqualToBean
,LessThanBean
,LessThanEqualToBean
public abstract class RelationBean
extends AnchorBean<RelationBean>
implements GenerateUniqueParameterization
Base class that specifies a relation between two
double
s.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
abstract DoubleBiPredicate
create()
Creates aDoubleBiPredicate
that implements the relation.boolean
int
hashCode()
abstract String
toString()
By default, we useAnchorBean.describeBean()
as the string representation of the bean.A string describing this class and all its parameterization.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
RelationBean
public RelationBean()
-
-
Method Details
-
create
Creates aDoubleBiPredicate
that implements the relation.- Returns:
- the relation as a predicate.
-
toString
Description copied from class:AnchorBean
By default, we useAnchorBean.describeBean()
as the string representation of the bean.- Overrides:
toString
in classAnchorBean<RelationBean>
- Returns:
- the string representation
-
uniqueName
Description copied from interface:GenerateUniqueParameterization
A string describing this class and all its parameterization.It must be guaranteed to be unique for a given set of parameters.
- Specified by:
uniqueName
in interfaceGenerateUniqueParameterization
- Returns:
- the unique name for the parameters.
-
equals
- Specified by:
equals
in interfaceGenerateUniqueParameterization
- Overrides:
equals
in classObject
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceGenerateUniqueParameterization
- Overrides:
hashCode
in classObject
-