Class CustomizableEntity

  • Direct Known Subclasses:
    ClaimsSet, Header, Header

    public abstract class CustomizableEntity
    extends java.lang.Object
    TODO
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomizableEntity​(java.util.Map<java.lang.String,​java.lang.Object> customFields)
      TODO
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getCustomField​(java.lang.String name, java.lang.Class<T> type)
      Return the specified custom field value, null if the custom field is not present.
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> getCustomFields()
      Returns the custom fields stored in the entity.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CustomizableEntity

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

      • getCustomField

        public final <T> T getCustomField​(java.lang.String name,
                                          java.lang.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 java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> getCustomFields()
        Returns the custom fields stored in the entity.
        Returns:
        the custom fields stored in the entity.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object