java.lang.Object
java.lang.Record
org.aya.concrete.Expr.IdiomNames
- Enclosing interface:
Expr
-
Constructor Summary
ConstructorsConstructorDescriptionIdiomNames(@NotNull Expr alternativeEmpty, @NotNull Expr alternativeOr, @NotNull Expr applicativeAp, @NotNull Expr applicativePure) Creates an instance of aIdiomNamesrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull ExprReturns the value of thealternativeEmptyrecord component.@NotNull ExprReturns the value of thealternativeOrrecord component.@NotNull ExprReturns the value of theapplicativeAprecord component.@NotNull ExprReturns the value of theapplicativePurerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanidentical(@NotNull Expr.IdiomNames names) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdiomNames
public IdiomNames(@NotNull @NotNull Expr alternativeEmpty, @NotNull @NotNull Expr alternativeOr, @NotNull @NotNull Expr applicativeAp, @NotNull @NotNull Expr applicativePure) Creates an instance of aIdiomNamesrecord class.- Parameters:
alternativeEmpty- the value for thealternativeEmptyrecord componentalternativeOr- the value for thealternativeOrrecord componentapplicativeAp- the value for theapplicativeAprecord componentapplicativePure- the value for theapplicativePurerecord component
-
-
Method Details
-
fmap
-
identical
-
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). -
alternativeEmpty
Returns the value of thealternativeEmptyrecord component.- Returns:
- the value of the
alternativeEmptyrecord component
-
alternativeOr
Returns the value of thealternativeOrrecord component.- Returns:
- the value of the
alternativeOrrecord component
-
applicativeAp
Returns the value of theapplicativeAprecord component.- Returns:
- the value of the
applicativeAprecord component
-
applicativePure
Returns the value of theapplicativePurerecord component.- Returns:
- the value of the
applicativePurerecord component
-