Class AbstractIdentifiableObject

    • Field Detail

      • _id

        protected org.bson.types.ObjectId _id
    • Constructor Detail

      • AbstractIdentifiableObject

        public AbstractIdentifiableObject()
    • Method Detail

      • getId

        public org.bson.types.ObjectId getId()
        Returns:
        the unique ID of this object
      • setId

        public void setId​(org.bson.types.ObjectId _id)
        Parameters:
        _id - the unique ID of this object
      • setCustomFields

        public void setCustomFields​(Map<String,​Object> customFields)
      • getCustomField

        public Object getCustomField​(String key)
      • getCustomField

        public <T> T getCustomField​(String key,
                                    Class<T> valueClass)
      • addCustomField

        public void addCustomField​(String key,
                                   Object value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object