public class Community extends java.lang.Object implements java.lang.Comparable<Community>
Constructor and Description |
---|
Community()
New community instance with unique identifier.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Community o)
Comparison method for two Community objects, based on the value of their
identfiers.
|
boolean |
equals(Community c)
Tell if two Community objects are equal, based on their identifier.
|
java.lang.String |
getId()
Return the community identifier as a String.
|
java.lang.Integer |
id()
Return the community identifier.
|
java.lang.String |
toString()
Stringification method for Community object.
|
public java.lang.Integer id()
public java.lang.String getId()
public boolean equals(Community c)
c
- The Community to compare to.public java.lang.String toString()
toString
in class java.lang.Object