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
doubles.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanabstract DoubleBiPredicatecreate()Creates aDoubleBiPredicatethat implements the relation.booleaninthashCode()abstract StringtoString()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 aDoubleBiPredicatethat implements the relation.- Returns:
- the relation as a predicate.
-
toString
Description copied from class:AnchorBeanBy default, we useAnchorBean.describeBean()as the string representation of the bean.- Overrides:
toStringin classAnchorBean<RelationBean>- Returns:
- the string representation
-
uniqueName
Description copied from interface:GenerateUniqueParameterizationA string describing this class and all its parameterization.It must be guaranteed to be unique for a given set of parameters.
- Specified by:
uniqueNamein interfaceGenerateUniqueParameterization- Returns:
- the unique name for the parameters.
-
equals
- Specified by:
equalsin interfaceGenerateUniqueParameterization- Overrides:
equalsin classObject
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceGenerateUniqueParameterization- Overrides:
hashCodein classObject
-