
public final class Point extends Object implements HjPoint
A point variable can hold values of different ranks e.g., point p; p = [1]; ... p = [2,3]; ...
| Modifier | Constructor and Description |
|---|---|
protected |
Point(int[] pValues)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HjPoint other) |
boolean |
equals(Object o) |
int |
get(int index)
Read the value in the point at specified rank index.
|
int |
hashCode() |
int |
rank()
Returns the number of elements in the Point value.
|
String |
toString() |
protected Point(int[] pValues)
pValues - The values of the tuplepublic int get(int index)
public int rank()
public int compareTo(HjPoint other)
compareTo in interface Comparable<HjPoint>Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.