Package org.neo4j.gds.triangle
Record Class TriangleCountResult
java.lang.Object
java.lang.Record
org.neo4j.gds.triangle.TriangleCountResult
public record TriangleCountResult(org.neo4j.gds.collections.haa.HugeAtomicLongArray localTriangles, long globalTriangles)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTriangleCountResult
(org.neo4j.gds.collections.haa.HugeAtomicLongArray localTriangles, long globalTriangles) Creates an instance of aTriangleCountResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theglobalTriangles
record component.final int
hashCode()
Returns a hash code value for this object.org.neo4j.gds.collections.haa.HugeAtomicLongArray
Returns the value of thelocalTriangles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TriangleCountResult
public TriangleCountResult(org.neo4j.gds.collections.haa.HugeAtomicLongArray localTriangles, long globalTriangles) Creates an instance of aTriangleCountResult
record class.- Parameters:
localTriangles
- the value for thelocalTriangles
record componentglobalTriangles
- the value for theglobalTriangles
record 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 '=='. -
localTriangles
public org.neo4j.gds.collections.haa.HugeAtomicLongArray localTriangles()Returns the value of thelocalTriangles
record component.- Returns:
- the value of the
localTriangles
record component
-
globalTriangles
public long globalTriangles()Returns the value of theglobalTriangles
record component.- Returns:
- the value of the
globalTriangles
record component
-