T - type of data contained in the item@ThreadSafe public abstract class AbstractItem<T> extends Object implements Item<T>
Item.| Modifier and Type | Field and Description |
|---|---|
private T |
data
The actual data held by the item.
|
private net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> |
metadata
Additional processing information associated with this Item.
|
private static long |
serialVersionUID
Serial version UID.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractItem()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> |
getItemMetadata()
Gets all of the metadata attached to this Item.
|
protected void |
setData(T newData)
Sets the data wrapped by this Item.
|
T |
unwrap()
Gets the wrapped item data.
|
private static final long serialVersionUID
private T data
private final net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> metadata
protected void setData(@Nullable T newData)
newData - the data@Nonnull public net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> getItemMetadata()
getItemMetadata in interface Item<T>Copyright © 1999–2016. All rights reserved.