java.lang.Object
java.lang.Record
org.flag4j.arrays.backend.SparseVectorData<T>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSparseVectorData
(List<T> entries, List<Integer> indices) Creates an instance of aSparseVectorData
record class. -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.indices()
Returns the value of theindices
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
entries
-
indices
-
-
Constructor Details
-
SparseVectorData
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
entries
-
indices
-