Class CustomizableEntity

    • Constructor Detail

      • CustomizableEntity

        public CustomizableEntity​(Map<String,​Object> customFields)
        TODO
        Parameters:
        customFields -
    • Method Detail

      • getCustomField

        public final <T> T getCustomField​(String name,
                                          Class<T> type)
        Return the specified custom field value, null if the custom field is not present.
        Parameters:
        name - the custom field name, it cannot be null.
        Returns:
        the specified custom field value, null if the custom field is not present.
      • getCustomFields

        public final Set<Map.Entry<String,​Object>> getCustomFields()
        Returns the custom fields stored in the entity.
        Returns:
        the custom fields stored in the entity.