Record Class DesignerLicenseGate.Decision
java.lang.Object
java.lang.Record
com.iizix.license.DesignerLicenseGate.Decision
- Record Components:
action- What the gate does.message- The text to show, in English: the banner, the warning, the reason or the line to log; null where the action shows nothing of its own.
- Enclosing class:
DesignerLicenseGate
public static record DesignerLicenseGate.Decision(DesignerLicenseGate.Action action, String message) extends Record
The decision.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionDecision(DesignerLicenseGate.Action action, String message) Creates an instance of aDecisionrecord class.Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
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. All components in this record class are compared withObjects::equals(Object,Object).action
message