Class Enriched<T>
java.lang.Object
org.aksw.commons.util.obj.Enriched<T>
A class for annotating an 'item' with metadata of arbitrary types.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.common.collect.ClassToInstanceMap<Object> <X> XgetInstance(Class<X> type) <X> XgetInstanceOrDefault(Class<X> type, X defaultValue) getItem()<X> XgetOrCreateInstance(Class<X> type, Supplier<X> ctor) inthashCode()static <T> Enriched<T> of(T item) static <T> Enriched<T> <X> XputInstance(Class<X> type, X value) <X> XputInstance(X value) toString()
-
Field Details
-
item
-
classToInstanceMap
-
-
Constructor Details
-
Enriched
-
Enriched
-
-
Method Details
-
getItem
-
getClassToInstanceMap
-
getInstance
-
getInstanceOrDefault
-
putInstance
public <X> X putInstance(X value) -
putInstance
-
getOrCreateInstance
-
of
-
of
-
hashCode
-
equals
-
toString
-