public final class ItemMetadataSupport extends Object
ItemMetadata operations.| Modifier | Constructor and Description |
|---|---|
private |
ItemMetadataSupport()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addAll(Item<?> item,
Iterable<? extends ItemMetadata> metadatas)
Adds all the given
ItemMetadata items to the given Item element. |
static void |
addToAll(Collection<? extends Item<?>> itemCollection,
Iterable<? extends ItemMetadata> metadatas)
Adds all the give
ItemMetadata items to each Item element in the given collection. |
static <T> void |
addToCollection(Collection<Item<T>> itemCollection,
Iterable<? extends ItemMetadata> itemMetadatas)
Adds one or more
ItemMetadata to the given collection if the collection is an instance of
ItemCollectionWithMetadata. |
public static void addToAll(@Nullable Collection<? extends Item<?>> itemCollection, @Nullable@NullableElements Iterable<? extends ItemMetadata> metadatas)
ItemMetadata items to each Item element in the given collection.itemCollection - collection of Item elementsmetadatas - collection of ItemMetadata items to be added to each Item element of the given
collectionpublic static void addAll(@Nullable Item<?> item, @Nullable@NullableElements Iterable<? extends ItemMetadata> metadatas)
ItemMetadata items to the given Item element.item - element to which ItemMetadata will be addedmetadatas - ItemMetadata to be added to the metadata elementpublic static <T> void addToCollection(@Nullable Collection<Item<T>> itemCollection, @Nullable@NullableElements Iterable<? extends ItemMetadata> itemMetadatas)
ItemMetadata to the given collection if the collection is an instance of
ItemCollectionWithMetadata.T - type of item in the collectionsitemCollection - collection to which the metadata may be addeditemMetadatas - the metadata which may be added to the collectionCopyright © 1999–2016. All rights reserved.