Package org.apache.oltu.commons.json
Class CustomizableEntity
- java.lang.Object
-
- org.apache.oltu.commons.json.CustomizableEntity
-
-
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> TgetCustomField(java.lang.String name, java.lang.Class<T> type)Return the specified custom field value,nullif 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.StringtoString()
-
-
-
Method Detail
-
getCustomField
public final <T> T getCustomField(java.lang.String name, java.lang.Class<T> type)Return the specified custom field value,nullif the custom field is not present.- Parameters:
name- the custom field name, it cannot be null.- Returns:
- the specified custom field value,
nullif 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:
toStringin classjava.lang.Object
-
-