Class MappedMetaDataWithDescriptions<T extends MappableMetaData>
java.lang.Object
org.jboss.metadata.javaee.support.IdMetaDataImpl
org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
org.jboss.metadata.javaee.support.MappedMetaDataWithDescriptions<T>
- Type Parameters:
T- the metadata type
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, IdMetaData, MappedMetaData<T>, WithDescriptions
- Direct Known Subclasses:
ResourceManagersMetaData
public abstract class MappedMetaDataWithDescriptions<T extends MappableMetaData>
extends IdMetaDataImplWithDescriptions
implements MappedMetaData<T>
MappedMetaData.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMappedMetaDataWithDescriptions(String keyName) Create a new MappedMetaData. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleancontainsKey(String key) Returns true if this mapped meta data contains a meta data entry for the specified key.booleanGet the metadata for the given keyinthashCode()booleanisEmpty()iterator()keySet()Get the key setbooleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<X> X[]toArray(X[] a) toString()Methods inherited from class IdMetaDataImplWithDescriptions
getDescriptions, setDescriptionsMethods inherited from class IdMetaDataImpl
clone, getId, setIdMethods inherited from interface Collection
parallelStream, removeIf, spliterator, stream, toArrayMethods inherited from interface IdMetaData
getId, setId
-
Constructor Details
-
MappedMetaDataWithDescriptions
Create a new MappedMetaData.- Parameters:
keyName- the key name
-
-
Method Details
-
containsKey
Description copied from interface:MappedMetaDataReturns true if this mapped meta data contains a meta data entry for the specified key.- Specified by:
containsKeyin interfaceMappedMetaData<T extends MappableMetaData>- Parameters:
key- the key of the mappable meta data- Returns:
- true if the key can be found
-
get
Get the metadata for the given key- Specified by:
getin interfaceMappedMetaData<T extends MappableMetaData>- Parameters:
key- the key- Returns:
- the metadata for the given key, or null if the map contains no mapping for this key
-
keySet
Description copied from interface:MappedMetaDataGet the key set- Specified by:
keySetin interfaceMappedMetaData<T extends MappableMetaData>- Returns:
- the key set
-
add
- Specified by:
addin interfaceCollection<T extends MappableMetaData>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends MappableMetaData>
-
contains
- Specified by:
containsin interfaceCollection<T extends MappableMetaData>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends MappableMetaData>- Specified by:
iteratorin interfaceIterable<T extends MappableMetaData>
-
remove
- Specified by:
removein interfaceCollection<T extends MappableMetaData>
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends MappableMetaData>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends MappableMetaData>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends MappableMetaData>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends MappableMetaData>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends MappableMetaData>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends MappableMetaData>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends MappableMetaData>
-
toArray
public <X> X[] toArray(X[] a) - Specified by:
toArrayin interfaceCollection<T extends MappableMetaData>
-
equals
- Specified by:
equalsin interfaceCollection<T extends MappableMetaData>- Overrides:
equalsin classIdMetaDataImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T extends MappableMetaData>- Overrides:
hashCodein classIdMetaDataImpl
-
toString
-