Record Class RetentionRoutes.Classification
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.sharing.RetentionRoutes.Classification
- Record Components:
route- the verdictreason- the deciding helper (class and method) or the one-line reason;UNREVIEWED - ...when aRetentionRoutes.Route.DEFERREDslot is a doubt and no audit itemauditItems- forRetentionRoutes.Route.DEFERRED, the audit items it carries (M3,U1,K1); empty otherwise and for anUNREVIEWEDdoubt
- Enclosing class:
RetentionRoutes
public static record RetentionRoutes.Classification(RetentionRoutes.Route route, String reason, Set<String> auditItems)
extends Record
One slot's verdict.
-
Constructor Summary
ConstructorsConstructorDescriptionClassification(RetentionRoutes.Route route, String reason, Set<String> auditItems) Creates an instance of aClassificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauditItemsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanTrue when this is aRetentionRoutes.Route.DEFERREDdoubt that no audit item names.reason()Returns the value of thereasonrecord component.route()Returns the value of therouterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Classification
Creates an instance of aClassificationrecord class.- Parameters:
route- the value for therouterecord componentreason- the value for thereasonrecord componentauditItems- the value for theauditItemsrecord component
-
-
Method Details
-
isUnreviewed
public boolean isUnreviewed()True when this is aRetentionRoutes.Route.DEFERREDdoubt that no audit item names. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
route
-
reason
-
auditItems
Returns the value of theauditItemsrecord component.- Returns:
- the value of the
auditItemsrecord component
-