Record Class Value.Conditional
java.lang.Object
java.lang.Record
org.geysermc.conduit.Value.Conditional
- Record Components:
condition- a boolean valuethen- the value when the condition holdsotherwise- the value when it does not
- All Implemented Interfaces:
Value
- Enclosing interface:
Value
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Array, Value.Conditional, Value.Constructed, Value.Field, Value.InstanceCall, Value.InstanceField, Value.InstanceOf, Value.Lambda, Value.Literal, Value.Multiple, Value.Operation, Value.Operator, Value.Parameter, Value.StaticCall, Value.This, Value.Uninitialized, Value.Unknown -
Constructor Summary
ConstructorsConstructorDescriptionConditional(Value condition, Value then, Value otherwise) Creates an instance of aConditionalrecord 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.Returns the value of theotherwiserecord component.then()Returns the value of thethenrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Conditional
-
-
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). -
condition
-
then
-
otherwise
-