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
ConstructorsConstructorDescriptionEmpty constructor.BaseIdentityBean(@NotNull BaseIdentityBean copy) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the instance's identity.inthashCode()voidsetIdentity(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:
getIdentityin interfaceIdentityBean- Returns:
- The instance's identity
-
setIdentity
Sets the instance's identity.- Specified by:
setIdentityin interfaceWritableIdentityBean- Parameters:
identity- The instance's identity
-
hashCode
public int hashCode() -
equals
-
toString
-