Bag is a concrete non-ordered Collection allowing duplicates
@CompilerIgnore "true"
@ScalaCompilerName "k2.standard.Bag"
Method Summary | |
---|---|
Boolean |
equals(Object)
|
Bag[G] |
excluding()
|
Bag[Object] |
flatten()
|
Bag[G] |
including()
|
Bag[G] |
intersection(Collection)
|
Set[G] |
intersectionWithSet(Set)
|
Void |
removeFromOid()
|
Void |
removeOne()
|
Sequence[G] |
sortedBy()
|
Bag[G] |
union(Collection)
|
Boolean equals[(Object)
Overrides Object.equals(elt : Object) Returns a Boolean stating whether the provided element is equal to current Bag. The provided element is equal to the current Bag if:
Bag[G] excluding[()
Returns a new Bag which content includes the content of the current Bag from which all instances of object have been removed
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;15304;15354"
Bag[Object] flatten[()
Returns a new Bag which content includes all non-Collection elements of the current Set, and, for each Collection element of the current Bag, as many elements as the Collection contains
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;15567;15611"
Bag[G] including[()
Returns a new Bag which content includes the content of the current Bag and the element object
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;15101;15151"
Bag[G] intersection[(Collection)
Returns a new Bag corresponding to the intersection of elements and the Bag
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;14486;14554"
Set[G] intersectionWithSet[(Set)
Returns a new Set corresponding to the intersection of a Set of elements and the Bag
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;14662;14730"
Void removeFromOid[()
Removes the element identified by the provided Oid from the Bag
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;14813;14869"
Void removeOne[()
Removes one instance of element from the Bag
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;14933;14983"
Sequence[G] sortedBy[()
Returns a sequence of the bag elements sorted using the given comparator. The comparator must return an integer n such that
Bag[G] union[(Collection)
Returns a new Bag corresponding to the union of elements and current Bag
@traceability_text_reference "file:/mnt/extradisk/builds/workspace/org.kermeta.language.library_master/org/kermeta/language/org.kermeta.language.library.standard/src/main/kmt/kermeta/standard/collections.kmt;14326;14387"