Record Class ActionConditionContribution
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.api.actionconditions.ActionConditionContribution
-
Constructor Summary
ConstructorDescriptionActionConditionContribution
(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 aActionConditionContribution
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecondition
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.model()
Returns the value of themodel
record component.name()
Returns the value of thename
record component.boolean
Returns the value of thepriviledged
record component.final String
toString()
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 aActionConditionContribution
record class.- Parameters:
name
- the value for thename
record componentmodel
- the value for themodel
record componentcondition
- the value for thecondition
record componentpriviledged
- the value for thepriviledged
record component
-
-
Method Details
-
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
model
Returns the value of themodel
record component.- Returns:
- the value of the
model
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
priviledged
public boolean priviledged()Returns the value of thepriviledged
record component.- Returns:
- the value of the
priviledged
record component
-