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
  • Constructor Details

    • BaseIdentityBean

      public BaseIdentityBean()
      Empty constructor.
    • BaseIdentityBean

      public BaseIdentityBean(IdentityBean copy)
      Copy constructor.
      Parameters:
      copy - The instance to copy
  • Method Details

    • getIdentity

      public @Nullable Identity getIdentity()
      Returns the instance's identity.
      Specified by:
      getIdentity in interface IdentityBean
      Returns:
      The instance's identity
    • setIdentity

      public void setIdentity(@Nullable Identity identity)
      Sets the instance's identity.
      Specified by:
      setIdentity in interface WritableIdentityBean
      Parameters:
      identity - The instance's identity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object