Package dev.orne.beans
Class BaseIdentityBean
java.lang.Object
dev.orne.beans.BaseIdentityBean
- All Implemented Interfaces:
IdentityBean
,WritableIdentityBean
@API(status=STABLE,
since="0.1")
public class BaseIdentityBean
extends Object
implements WritableIdentityBean
Base implementation of
IdentityBean
.- Since:
- 0.1
- Version:
- 1.0, 2020-05
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.orne.beans.IdentityBean
IdentityBean.RequireIdentity
-
Constructor Summary
ConstructorDescriptionEmpty constructor.BaseIdentityBean
(@NotNull BaseIdentityBean copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the instance's identity.int
hashCode()
void
setIdentity
(Identity identity) Sets the instance's identity.toString()
-
Constructor Details
-
BaseIdentityBean
public BaseIdentityBean()Empty constructor. -
BaseIdentityBean
Copy constructor.- Parameters:
copy
- The instance to copy
-
-
Method Details
-
getIdentity
Returns the instance's identity.- Specified by:
getIdentity
in interfaceIdentityBean
- Returns:
- The instance's identity
-
setIdentity
Sets the instance's identity.- Specified by:
setIdentity
in interfaceWritableIdentityBean
- Parameters:
identity
- The instance's identity
-
hashCode
public int hashCode() -
equals
-
toString
-