Record Class EventRelationshipTraverser.TreeResolverSettings
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.event.api.eventrelationship.EventRelationshipTraverser.TreeResolverSettings
- Record Components:
allowDuplicateEvents- when true, returns duplicate events if they exist at multiple points in the tree. never use this on trees that have not been validated for loops, otherwise you'll produce endless loops
- Enclosing class:
EventRelationshipTraverser
public static record EventRelationshipTraverser.TreeResolverSettings(boolean allowDuplicateEvents, EventRelationshipTraverser.TreeSorting sorting)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTreeResolverSettings(boolean allowDuplicateEvents, EventRelationshipTraverser.TreeSorting sorting) Creates an instance of aTreeResolverSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowDuplicateEventsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sorting()Returns the value of thesortingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TreeResolverSettings
public TreeResolverSettings(boolean allowDuplicateEvents, EventRelationshipTraverser.TreeSorting sorting) Creates an instance of aTreeResolverSettingsrecord class.- Parameters:
allowDuplicateEvents- the value for theallowDuplicateEventsrecord componentsorting- the value for thesortingrecord component
-
-
Method Details
-
withDuplicateEventsAllowed
-
withSorting
public static EventRelationshipTraverser.TreeResolverSettings withSorting(EventRelationshipTraverser.TreeSorting sorting) -
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. -
allowDuplicateEvents
public boolean allowDuplicateEvents()Returns the value of theallowDuplicateEventsrecord component.- Returns:
- the value of the
allowDuplicateEventsrecord component
-
sorting
Returns the value of thesortingrecord component.- Returns:
- the value of the
sortingrecord component
-