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 booleanequals(Object other)StringgetIdentifier()Returns the unique identifier assigned to this object.inthashCode()voidsetIdentifier(String identifier)Sets the identifier assigned to this object.
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:IdentifiableReturns the unique identifier assigned to this object. All identifiable objects must have a deterministic, unique identifier which may not be null.- Specified by:
getIdentifierin interfaceIdentifiable- Returns:
- The unique identifier assigned to this object, which may not be null.
-
setIdentifier
public void setIdentifier(String identifier)
Description copied from interface:IdentifiableSets the identifier assigned to this object.- Specified by:
setIdentifierin interfaceIdentifiable- Parameters:
identifier- The identifier to assign.
-
-