Class Bag
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.Bag
- All Implemented Interfaces:
Iterable<Object>,Collection<Object>
Bag collection implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionBag()Constructor.Bag(Collection<?> arg0) Constructor parameterized with an existing collection. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<?> arg0) voidclear()booleanbooleancontainsAll(Collection<?> arg0) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> arg0) booleanretainAll(Collection<?> arg0) intsize()Object[]toArray()Object[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
Bag
public Bag()Constructor. -
Bag
Constructor parameterized with an existing collection.- Parameters:
arg0- the collection
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<Object>- See Also:
-
addAll
- Specified by:
addAllin interfaceCollection<Object>- See Also:
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Object>- See Also:
-
contains
- Specified by:
containsin interfaceCollection<Object>- See Also:
-
containsAll
- Specified by:
containsAllin interfaceCollection<Object>- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Object>- See Also:
-
remove
- Specified by:
removein interfaceCollection<Object>- See Also:
-
removeAll
- Specified by:
removeAllin interfaceCollection<Object>- See Also:
-
size
public int size()- Specified by:
sizein interfaceCollection<Object>- See Also:
-
iterator
-
retainAll
- Specified by:
retainAllin interfaceCollection<Object>- See Also:
-
toArray
- Specified by:
toArrayin interfaceCollection<Object>- See Also:
-
toArray
- Specified by:
toArrayin interfaceCollection<Object>- See Also:
-