Package com.e1c.g5.v8.dt.cli.api
Record Class ICliVerifier.Verdict
java.lang.Object
java.lang.Record
com.e1c.g5.v8.dt.cli.api.ICliVerifier.Verdict
- Record Components:
allow
-true
, if operation is allowed, andfalse
otherwise.denyReason
- the reason operation is denied. This value is ignored in case operation is allowed.
- Enclosing interface:
- ICliVerifier
Verification verdict.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
allow()
Returns the value of theallow
record component.boolean
deny()
Returns if registration is denied.Returns the value of thedenyReason
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
ALLOW
Default 'allow' verdict.
-
-
Constructor Details
-
Verdict
A canonical record constructor.
-
-
Method Details
-
deny
public boolean deny()Returns if registration is denied.- Returns:
- if registration is denied.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
allow
public boolean allow()Returns the value of theallow
record component.- Returns:
- the value of the
allow
record component
-
denyReason
Returns the value of thedenyReason
record component.- Returns:
- the value of the
denyReason
record component
-