public class Community extends Object implements Comparable<Community>
Modifier and Type | Field and Description |
---|---|
protected Integer |
id
Id of the current community as an Integer.
|
protected static Integer |
NEXT_COMMUNITY_ID
Counter of the generated communities.
|
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.
|
String |
getId()
Return the community identifier as a String.
|
Integer |
id()
Return the community identifier.
|
String |
toString()
Stringification method for Community object.
|
protected static Integer NEXT_COMMUNITY_ID
public Community()
public String getId()
public boolean equals(Community c)
c
- The Community to compare to.public int compareTo(Community o)
compareTo
in interface Comparable<Community>
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses