Record Class IotaMultiPredicate.Any
java.lang.Object
java.lang.Record
at.petrak.hexcasting.api.casting.arithmetic.predicates.IotaMultiPredicate.Any
- All Implemented Interfaces:
IotaMultiPredicate
- Enclosing interface:
- IotaMultiPredicate
public static record IotaMultiPredicate.Any(IotaPredicate needs, IotaPredicate fallback)
extends Record
implements IotaMultiPredicate
-
Nested Class Summary
Nested classes/interfaces inherited from interface at.petrak.hexcasting.api.casting.arithmetic.predicates.IotaMultiPredicate
IotaMultiPredicate.All, IotaMultiPredicate.Any, IotaMultiPredicate.Either, IotaMultiPredicate.Pair, IotaMultiPredicate.Triple -
Constructor Summary
ConstructorsConstructorDescriptionAny(IotaPredicate needs, IotaPredicate fallback) Creates an instance of aAnyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.needs()Returns the value of theneedsrecord component.booleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Any
Creates an instance of aAnyrecord class.- Parameters:
needs- the value for theneedsrecord componentfallback- the value for thefallbackrecord component
-
-
Method Details
-
test
- Specified by:
testin interfaceIotaMultiPredicate
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
needs
Returns the value of theneedsrecord component.- Returns:
- the value of the
needsrecord component
-
fallback
Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-