Package com.github.tonivade.purefun.free
Record Class FreeAp.Apply<F extends Kind<F,?>,A,B>
java.lang.Object
java.lang.Record
com.github.tonivade.purefun.free.FreeAp.Apply<F,A,B>
- All Implemented Interfaces:
Applicable<FreeAp<F,,?>, B> Mappable<FreeAp<F,,?>, B> FreeAp<F,,B> FreeApOf<F,,B> Kind<FreeAp<F,?>, B>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.core.Applicable
Applicable.Map2<F extends Applicable<F,?>, A, B>, Applicable.Map3<F extends Applicable<F, ?>, A, B, C>, Applicable.Map4<F extends Applicable<F, ?>, A, B, C, D>, Applicable.Map5<F extends Applicable<F, ?>, A, B, C, D, E> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply()Returns the value of theapplyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.tonivade.purefun.core.Applicable
zip, zipLeft, zipRight, zipWith
-
Field Details
-
value
The field for thevaluerecord component. -
apply
The field for theapplyrecord component.
-
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
apply
Returns the value of theapplyrecord component.- Returns:
- the value of the
applyrecord component
-