T - type of items stored in this collectionpublic class ItemCollectionWithMetadata<T> extends Object implements Collection<Item<T>>
| Modifier and Type | Field and Description |
|---|---|
private Collection<Item<T>> |
delegate
The delegate collection.
|
private net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> |
metadata
Additional processing information associated with this collection of Items.
|
| Constructor and Description |
|---|
ItemCollectionWithMetadata()
Constructor.
|
ItemCollectionWithMetadata(Collection<Item<T>> wrappedCollection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Item<T> e) |
boolean |
addAll(Collection<? extends Item<T>> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> |
getCollectionMetadata()
Gets the
ItemMetadata for this collection. |
boolean |
isEmpty() |
Iterator<Item<T>> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<TT> TT[] |
toArray(TT[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprivate final Collection<Item<T>> delegate
private final net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> metadata
public ItemCollectionWithMetadata()
public ItemCollectionWithMetadata(@Nonnull@NonnullElements Collection<Item<T>> wrappedCollection)
wrappedCollection - the underlying collection that holds the items@Nonnull @NonnullElements public net.shibboleth.utilities.java.support.collection.ClassToInstanceMultiMap<ItemMetadata> getCollectionMetadata()
ItemMetadata for this collection.ItemMetadata for this collection, never nullpublic int size()
size in interface Collection<Item<T>>public boolean isEmpty()
isEmpty in interface Collection<Item<T>>public boolean contains(Object o)
contains in interface Collection<Item<T>>@Nonnull @NonnullElements public Object[] toArray()
toArray in interface Collection<Item<T>>@Nonnull @NonnullElements public <TT> TT[] toArray(@Nonnull TT[] a)
toArray in interface Collection<Item<T>>public boolean remove(@Nullable Object o)
remove in interface Collection<Item<T>>public boolean containsAll(@Nonnull Collection<?> c)
containsAll in interface Collection<Item<T>>public boolean addAll(@Nullable Collection<? extends Item<T>> c)
addAll in interface Collection<Item<T>>public boolean removeAll(@Nullable Collection<?> c)
removeAll in interface Collection<Item<T>>public boolean retainAll(@Nonnull Collection<?> c)
retainAll in interface Collection<Item<T>>public void clear()
clear in interface Collection<Item<T>>Copyright © 1999–2016. All rights reserved.