VMware GemFire Java API Reference
Package org.apache.geode.lang
Interface Identifiable<T extends java.lang.Comparable<T>>
-
- Type Parameters:
T- the class type of the identifier.
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
Function<T>
- All Known Implementing Classes:
AbstractConfiguration,CacheConfig.AsyncEventQueue,CacheElement,CliFunction,Deployment,DiskStore,DiskStoreType,FunctionAdapter,GatewayReceiver,GroupableConfiguration,Index,JndiBindingsType.JndiBinding,JndiBindingsType.JndiBinding.ConfigProperty,Member,MemberInformation,Pdx,QueryConfigService,Region,RegionConfig,RegionConfig.Index
public interface Identifiable<T extends java.lang.Comparable<T>> extends java.io.SerializableThe Identifiable interface defines a contract for classes whose Object instances can be uniquely identified relative to other Object instances within the same class type hierarchy.- Since:
- GemFire 7.0
- See Also:
Comparable
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T extends Identifiable>
booleanexists(java.util.List<T> list, java.lang.String id)static <T extends Identifiable>
Tfind(java.util.List<T> list, java.lang.String id)TgetId()Gets the identifier uniquely identifying this Object instance.static <T extends Identifiable>
voidremove(java.util.List<T> list, java.lang.String id)
-
-
-
Method Detail
-
getId
T getId()
Gets the identifier uniquely identifying this Object instance.- Returns:
- an identifier uniquely identifying this Object.
-
exists
static <T extends Identifiable> boolean exists(java.util.List<T> list, java.lang.String id)
-
find
static <T extends Identifiable> T find(java.util.List<T> list, java.lang.String id)
-
remove
static <T extends Identifiable> void remove(java.util.List<T> list, java.lang.String id)
-
-