public class Vertex
extends java.lang.Object
Constructor and Description |
---|
Vertex(int id)
Instantiate a Vertex with an id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Return true if this object is equal to the argument of
of this method.
|
int |
getId()
Get the id.
|
int |
hashCode()
Return the hashcode.
|
public Vertex(int id)
id
- The id.public int getId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to which to compare