java.lang.Object
java.lang.Record
org.aya.terck.Diagonal<T,P>
- All Implemented Interfaces:
org.aya.pretty.doc.Docile
public record Diagonal<T,P> (@NotNull CallMatrix<T,P> matrix, @NotNull kala.collection.immutable.ImmutableSeq<Relation> diagonal)
extends Record
implements org.aya.pretty.doc.Docile
-
Constructor Summary
ConstructorsConstructorDescriptionDiagonal(@NotNull CallMatrix<T, P> matrix, @NotNull kala.collection.immutable.ImmutableSeq<Relation> diagonal) Creates an instance of aDiagonalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,P> @NotNull Diagonal<T, P> create(@NotNull CallMatrix<T, P> matrix) @NotNull kala.collection.immutable.ImmutableSeq<Relation>diagonal()Returns the value of thediagonalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull CallMatrix<T,P> matrix()Returns the value of thematrixrecord component.@NotNull org.aya.pretty.doc.DoctoDoc()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Diagonal
public Diagonal(@NotNull @NotNull CallMatrix<T, P> matrix, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<Relation> diagonal) Creates an instance of aDiagonalrecord class.- Parameters:
matrix- the value for thematrixrecord componentdiagonal- the value for thediagonalrecord component
-
-
Method Details
-
create
@NotNull public static <T,P> @NotNull Diagonal<T,P> create(@NotNull @NotNull CallMatrix<T, P> matrix) -
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc()- Specified by:
toDocin interfaceorg.aya.pretty.doc.Docile
-
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). -
matrix
Returns the value of thematrixrecord component.- Returns:
- the value of the
matrixrecord component
-
diagonal
Returns the value of thediagonalrecord component.- Returns:
- the value of the
diagonalrecord component
-