Class AggregateMember

  • Direct Known Subclasses:
    Entry

    public abstract class AggregateMember
    extends java.lang.Object
    A member of an aggregate. Has a key as unique identifier.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String KEY_SEPARATOR
      Separator between parts of a key
    • Constructor Summary

      Constructors 
      Constructor Description
      AggregateMember()  
    • Field Detail

      • KEY_SEPARATOR

        public static final java.lang.String KEY_SEPARATOR
        Separator between parts of a key
        See Also:
        Constant Field Values
    • Constructor Detail

      • AggregateMember

        public AggregateMember()
    • Method Detail

      • key

        public abstract java.lang.String key()
        Get the key of the AggregateMember.
        Returns:
        the key, composed with the KEY_SEPARATOR.
      • hashCode

        public int hashCode()

        This implementation uses the key().
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)

        This implementation uses the key().
        Overrides:
        equals in class java.lang.Object