|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.util.ItemCollectionWithMetadata<ItemType>
ItemType - type of items stored in this collectionpublic class ItemCollectionWithMetadata<ItemType extends Item>
A wrapper around a delegate collection that allows the collection to carry item metadata.
| Field Summary | |
|---|---|
private Collection<ItemType> |
delegate
The delegate collection. |
private ClassToInstanceMultiMap<ItemMetadata> |
metadata
Additional processing information associated with this collection of Items. |
| Constructor Summary | |
|---|---|
ItemCollectionWithMetadata()
Constructor. |
|
ItemCollectionWithMetadata(Collection<ItemType> wrappedCollection)
Constructor. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(ItemType e)
|
|
boolean |
addAll(Collection<? extends ItemType> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
ClassToInstanceMultiMap<ItemMetadata> |
getCollectionMetadata()
Gets the ItemMetadata for this collection. |
|
boolean |
isEmpty()
|
|
Iterator<ItemType> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Field Detail |
|---|
private final Collection<ItemType extends Item> delegate
private final ClassToInstanceMultiMap<ItemMetadata> metadata
| Constructor Detail |
|---|
public ItemCollectionWithMetadata()
public ItemCollectionWithMetadata(@Nonnull@NonnullElements
Collection<ItemType> wrappedCollection)
wrappedCollection - the underlying collection that holds the items| Method Detail |
|---|
@Nonnull @NonnullElements public ClassToInstanceMultiMap<ItemMetadata> getCollectionMetadata()
ItemMetadata for this collection.
ItemMetadata for this collection, never nullpublic int size()
size in interface Collection<ItemType extends Item>public boolean isEmpty()
isEmpty in interface Collection<ItemType extends Item>public boolean contains(Object o)
contains in interface Collection<ItemType extends Item>@Nonnull @NonnullElements public Iterator<ItemType> iterator()
iterator in interface Iterable<ItemType extends Item>iterator in interface Collection<ItemType extends Item>@Nonnull @NonnullElements public Object[] toArray()
toArray in interface Collection<ItemType extends Item>
@Nonnull
@NonnullElements
public <T> T[] toArray(@Nonnull
T[] a)
toArray in interface Collection<ItemType extends Item>
public boolean add(@Nullable
ItemType e)
add in interface Collection<ItemType extends Item>
public boolean remove(@Nullable
Object o)
remove in interface Collection<ItemType extends Item>
public boolean containsAll(@Nonnull
Collection<?> c)
containsAll in interface Collection<ItemType extends Item>
public boolean addAll(@Nullable
Collection<? extends ItemType> c)
addAll in interface Collection<ItemType extends Item>
public boolean removeAll(@Nullable
Collection<?> c)
removeAll in interface Collection<ItemType extends Item>
public boolean retainAll(@Nonnull
Collection<?> c)
retainAll in interface Collection<ItemType extends Item>public void clear()
clear in interface Collection<ItemType extends Item>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||