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
ConstructorDescriptionBag()
Constructor.Bag
(Collection<?> arg0) Constructor parameterized with an existing collection. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<?> arg0) void
clear()
boolean
boolean
containsAll
(Collection<?> arg0) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> arg0) boolean
retainAll
(Collection<?> arg0) int
size()
Object[]
toArray()
Object[]
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, 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:
add
in interfaceCollection<Object>
- See Also:
-
addAll
- Specified by:
addAll
in interfaceCollection<Object>
- See Also:
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<Object>
- See Also:
-
contains
- Specified by:
contains
in interfaceCollection<Object>
- See Also:
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Object>
- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Object>
- See Also:
-
remove
- Specified by:
remove
in interfaceCollection<Object>
- See Also:
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Object>
- See Also:
-
size
public int size()- Specified by:
size
in interfaceCollection<Object>
- See Also:
-
iterator
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Object>
- See Also:
-
toArray
- Specified by:
toArray
in interfaceCollection<Object>
- See Also:
-
toArray
- Specified by:
toArray
in interfaceCollection<Object>
- See Also:
-