Package org.apache.guacamole.net.auth
Class AbstractIdentifiable
- java.lang.Object
-
- org.apache.guacamole.net.auth.AbstractIdentifiable
-
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
AbstractActiveConnection
,AbstractAuthenticatedUser
,AbstractConnection
,AbstractConnectionGroup
,AbstractUser
,AbstractUserGroup
public abstract class AbstractIdentifiable extends Object implements Identifiable
Abstract implementation of Identifiable which provides equals() and hashCode() implementations which use the identifier to determine equality. The identifier comparison is case-sensitive.
-
-
Constructor Summary
Constructors Constructor Description AbstractIdentifiable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getIdentifier()
Returns the unique identifier assigned to this object.int
hashCode()
void
setIdentifier(String identifier)
Sets the identifier assigned to this object.
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:Identifiable
Returns the unique identifier assigned to this object. All identifiable objects must have a deterministic, unique identifier which may not be null.- Specified by:
getIdentifier
in interfaceIdentifiable
- Returns:
- The unique identifier assigned to this object, which may not be null.
-
setIdentifier
public void setIdentifier(String identifier)
Description copied from interface:Identifiable
Sets the identifier assigned to this object.- Specified by:
setIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- The identifier to assign.
-
-