Class Membership

All Implemented Interfaces:
Identifiable, Serializable

public class Membership extends MembershipDescriptor
The representation of the membership of a membership context.
Since:
1.2
See Also:
  • Constructor Details

    • Membership

      public Membership(ObjectIdentity context, long revision, Set<Principal> members)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the memberships returned by the API.
      Parameters:
      context - the context identity with which the membership is associated.
      revision - the internal revision number of the membership.
      members - the current members of the membership.
  • Method Details

    • getRevision

      public long getRevision()
      Gets the internal revision number of the membership.
      Returns:
      The internal revision number of the membership
    • getMembers

      public Set<Principal> getMembers()
      Gets the members of the membership.
      Returns:
      The members of the membership.
    • setMembers

      public void setMembers(Set<Principal> members)
      Sets the members of the membership.
      Parameters:
      members - the members of the membership.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class MembershipDescriptor