Class DictionaryImpl<KeyT,T>
- java.lang.Object
-
- org.eclipse.m2m.internal.qvt.oml.stdlib.DictionaryImpl<KeyT,T>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Dictionary<KeyT,T>
public class DictionaryImpl<KeyT,T> extends Object implements Dictionary<KeyT,T>
-
-
Field Summary
-
Fields inherited from interface org.eclipse.m2m.qvt.oml.util.Dictionary
SINGLETON_NAME
-
-
Constructor Summary
Constructors Constructor Description DictionaryImpl()DictionaryImpl(DictionaryImpl<KeyT,T> source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T o)booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Tdefaultget(KeyT k, T v)booleanequals(Object o)Tget(KeyT k)inthashCode()booleanhasKey(KeyT k)booleanisEmpty()Iterator<T>iterator()List<KeyT>keys()voidput(KeyT k, T v)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<E> E[]toArray(E[] a)StringtoString()List<T>values()-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
DictionaryImpl
public DictionaryImpl()
-
DictionaryImpl
public DictionaryImpl(DictionaryImpl<KeyT,T> source)
-
-
Method Detail
-
hasKey
public boolean hasKey(KeyT k)
- Specified by:
hasKeyin interfaceDictionary<KeyT,T>
-
defaultget
public T defaultget(KeyT k, T v)
- Specified by:
defaultgetin interfaceDictionary<KeyT,T>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<KeyT>- Specified by:
clearin interfaceDictionary<KeyT,T>
-
size
public int size()
- Specified by:
sizein interfaceCollection<KeyT>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAllin interfaceCollection<KeyT>
-
add
public boolean add(T o)
- Specified by:
addin interfaceCollection<KeyT>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<KeyT>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<KeyT>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<KeyT>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<KeyT>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<KeyT>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<KeyT>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<KeyT>
-
toArray
public <E> E[] toArray(E[] a)
- Specified by:
toArrayin interfaceCollection<KeyT>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<KeyT>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<KeyT>- Overrides:
hashCodein classObject
-
-