public class Community extends Object implements 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.
|
String |
getId()
Return the community identifier as a String.
|
Integer |
id()
Return the community identifier.
|
String |
toString()
Stringification method for Community object.
|
public Integer id()
public String getId()
public boolean equals(Community c)
c
- The Community to compare to.public String toString()
public int compareTo(Community o)
compareTo
in interface Comparable<Community>
Copyright © 2015. All rights reserved.