T
- the class type of the identifier.public interface Identifiable<T extends Comparable<T>> extends Serializable
Comparable
Modifier and Type | Method and Description |
---|---|
static <T extends Identifiable> |
exists(List<T> list,
String id) |
static <T extends Identifiable> |
find(List<T> list,
String id) |
T |
getId()
Gets the identifier uniquely identifying this Object instance.
|
static <T extends Identifiable> |
remove(List<T> list,
String id) |
T getId()
static <T extends Identifiable> boolean exists(List<T> list, String id)
static <T extends Identifiable> T find(List<T> list, String id)
static <T extends Identifiable> void remove(List<T> list, String id)