Record Class ModelRelationshipTraversal.Policy
java.lang.Object
java.lang.Record
io.fluxzero.common.modeling.ModelRelationshipTraversal.Policy
- Enclosing class:
ModelRelationshipTraversal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.Returns the value of themaxDepthMessagerecord component.intReturns the value of themaxModelsrecord component.Returns the value of themaxModelsMessagerecord component.booleanReturns the value of therejectDepthOverflowrecord component.booleanReturns the value of therevisitAtDifferentDepthsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Policy
public Policy(int maxDepth, int maxModels, boolean rejectDepthOverflow, boolean revisitAtDifferentDepths, String maxModelsMessage, String maxDepthMessage) Creates an instance of aPolicyrecord class.- Parameters:
maxDepth- the value for themaxDepthrecord componentmaxModels- the value for themaxModelsrecord componentrejectDepthOverflow- the value for therejectDepthOverflowrecord componentrevisitAtDifferentDepths- the value for therevisitAtDifferentDepthsrecord componentmaxModelsMessage- the value for themaxModelsMessagerecord componentmaxDepthMessage- the value for themaxDepthMessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
maxDepth
public int maxDepth()Returns the value of themaxDepthrecord component.- Returns:
- the value of the
maxDepthrecord component
-
maxModels
public int maxModels()Returns the value of themaxModelsrecord component.- Returns:
- the value of the
maxModelsrecord component
-
rejectDepthOverflow
public boolean rejectDepthOverflow()Returns the value of therejectDepthOverflowrecord component.- Returns:
- the value of the
rejectDepthOverflowrecord component
-
revisitAtDifferentDepths
public boolean revisitAtDifferentDepths()Returns the value of therevisitAtDifferentDepthsrecord component.- Returns:
- the value of the
revisitAtDifferentDepthsrecord component
-
maxModelsMessage
Returns the value of themaxModelsMessagerecord component.- Returns:
- the value of the
maxModelsMessagerecord component
-
maxDepthMessage
Returns the value of themaxDepthMessagerecord component.- Returns:
- the value of the
maxDepthMessagerecord component
-