Scala Library
|
|
scala/collection/SetProxyLike.scala
]
trait
SetProxyLike[A, +This <: SetLike[A, This] with
Set[A]]
extends
SetLike[A, This] with
IterableProxyLike[A, This]Method Summary | |
override def
|
&
(that : Set[A]) : This
Returns a new set consisting of all elements that are both in the current
set and in the argument set.
|
override def
|
&~
(that : Set[A]) : This
The difference of this set and the given set
that . |
override def
|
apply
(elem : A) : Boolean
This method allows sets to be interpreted as predicates.
It returns
true , iff this set contains element
elem . |
override def
|
contains
(elem : A) : Boolean
Checks if this set contains element
elem . |
override def
|
diff
(that : Set[A]) : This
The difference of this set and the given set
that . |
override def
|
intersect
(that : Set[A]) : This
Returns a new set consisting of all elements that are both in the current
set and in the argument set.
|
override def
|
isEmpty
: Boolean
Checks if this set is empty.
|
override def
|
subsetOf
(that : Set[A]) : Boolean
Checks if this set is a subset of set
that . |
override def
|
union
(that : Set[A]) : This
The union of this set and the given set
that . |
override def
|
|
(that : Set[A]) : This
The union of this set and the given set
that . |
Methods inherited from IterableProxyLike | |
iterator, foreach, foldRight, reduceRight, toIterable, zip, zipAll, zipWithIndex, head, takeRight, dropRight, sameElements, toStream, view, view |
Methods inherited from TraversableProxyLike | |
self (abstract), nonEmpty, size, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix |
Methods inherited from Proxy | |
hashCode, equals, toString |
Methods inherited from SetLike | |
empty (abstract), + (abstract), - (abstract), newBuilder, ** |
Methods inherited from Subtractable | |
-, --, -- |
Methods inherited from Addable | |
+, ++, ++ |
Methods inherited from IterableLike | |
thisCollection, toCollection, elements, canEqual, first, firstOption, projection |
Methods inherited from TraversableLike | |
repr, partialMap, sum, product, min, max, toIndexedSeq, withFilter |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
elem
.elem -
the element to check for membership.true
iff elem
is contained in this set.override
def
isEmpty : Boolean
true
iff there is no element in the set.true
, iff this set contains element
elem
.elem -
the element to check for membership.true
iff elem
is contained in this set.that -
the set to intersect with.that -
the set to intersect with.intersect
.that
.that -
the set of elements to addthat
.that
.that -
the set of elements to addthat
.union
.that
.that -
the set of elements to removethat
.that
.that -
the set of elements to removethat
.diff
.that
.that -
another set.true
iff the other set is a superset of this set.
todo: rename to isSubsetOf
Scala Library
|
|