public class PathIds extends Object
int[]
, instances of this class may
be used safely in a hash map.Constructor and Description |
---|
PathIds(int[] ids)
Core constructor.
|
PathIds(Path p)
Convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Same path ids.
|
int |
hashCode()
The hash code of an edge is the hash code of the vertex with the smaller
hash code X 31 plus the hash code of the vertex with the larger hash
code.
|
int |
length()
The length of the path.
|
String |
toString()
Return the path id array as a string.
|
public PathIds(Path p)
p
- A path.public PathIds(int[] ids)
ids
- The ordered set of vertex identifiers for some join path
segment.public int length()
public int hashCode()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.