java.lang.Object
java.lang.Record
org.aya.tyck.pat.PatTycker.AllLhsResult
- Enclosing class:
PatTycker
public static record PatTycker.AllLhsResult(@NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult> lhsResult, boolean hasError)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAllLhsResult(@NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult> lhsResults) AllLhsResult(@NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult> lhsResult, boolean hasError) Creates an instance of aAllLhsResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhasError()Returns the value of thehasErrorrecord component.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult>Returns the value of thelhsResultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AllLhsResult
public AllLhsResult(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult> lhsResults) -
AllLhsResult
public AllLhsResult(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<PatTycker.LhsResult> lhsResult, boolean hasError) Creates an instance of aAllLhsResultrecord class.- Parameters:
lhsResult- the value for thelhsResultrecord componenthasError- the value for thehasErrorrecord 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 '=='. -
lhsResult
Returns the value of thelhsResultrecord component.- Returns:
- the value of the
lhsResultrecord component
-
hasError
public boolean hasError()Returns the value of thehasErrorrecord component.- Returns:
- the value of the
hasErrorrecord component
-