public class Cluster
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
id |
protected java.util.Map<java.lang.Long,java.util.Set<Link>> |
links |
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(long n) |
(package private) void |
addLink(Link l) |
boolean |
equals(java.lang.Object obj) |
long |
getId() |
java.util.Map<java.lang.Long,java.util.Set<Link>> |
getLinks() |
java.util.Set<java.lang.Long> |
getNodes() |
int |
hashCode() |
void |
setId(long id) |
java.lang.String |
toString() |
protected long id
protected java.util.Map<java.lang.Long,java.util.Set<Link>> links
public long getId()
public void setId(long id)
public java.util.Map<java.lang.Long,java.util.Set<Link>> getLinks()
public java.util.Set<java.lang.Long> getNodes()
void add(long n)
void addLink(Link l)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object