Record Class ActionConditionContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.api.actionconditions.ActionConditionContribution
-
Constructor Summary
ConstructorsConstructorDescriptionActionConditionContribution(String name, String model, String condition) Extended constructor whereActionConditionContribution(String, String, String, boolean)'s priviledged flag defaults to false.ActionConditionContribution(String name, String model, String condition, boolean priviledged) Creates an instance of aActionConditionContributionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.booleanReturns the value of thepriviledgedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionConditionContribution
Extended constructor whereActionConditionContribution(String, String, String, boolean)'s priviledged flag defaults to false. -
ActionConditionContribution
public ActionConditionContribution(String name, String model, String condition, boolean priviledged) Creates an instance of aActionConditionContributionrecord class.- Parameters:
name- the value for thenamerecord componentmodel- the value for themodelrecord componentcondition- the value for theconditionrecord componentpriviledged- the value for thepriviledgedrecord 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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
priviledged
public boolean priviledged()Returns the value of thepriviledgedrecord component.- Returns:
- the value of the
priviledgedrecord component
-