|
Scala Library
|
|
scala/collection/immutable/ListSet.scala]
protected
class
Node(protected val override elem : A)
extends ListSet[A]| Method Summary | |
override def
|
+
(e : A) : ListSet[A]
This method creates a new set with an additional element.
|
override def
|
-
(e : A) : ListSet[A]
- can be used to remove a single element from
a set. |
override def
|
contains
(e : A) : Boolean
Checks if this set contains element
elem. |
override def
|
isEmpty
: Boolean
Checks if this set is empty.
|
protected override def
|
next : ListSet[A] |
override def
|
size
: Int
Returns the number of elements in this set.
|
override def
|
stringPrefix
: java.lang.String
Defines the prefix of this object's
toString representation. |
| Methods inherited from ListSet | |
| companion, iterator |
| Methods inherited from SetLike | |
| newBuilder, apply, intersect, &, **, union, |, diff, &~, subsetOf, toString, hashCode, equals |
| Methods inherited from Subtractable | |
| -, --, -- |
| Methods inherited from Addable | |
| +, ++, ++ |
| Methods inherited from GenericSetTemplate | |
| empty |
| Methods inherited from Function1 | |
| compose, andThen |
| Methods inherited from IterableLike | |
| thisCollection, toCollection, elements, foreach, forall, exists, find, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, view, view, first, firstOption, projection |
| Methods inherited from GenericTraversableTemplate | |
| genericBuilder, unzip, flatten, transpose |
| Methods inherited from TraversableLike | |
| repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toSeq, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, withFilter |
| Methods inherited from AnyRef | |
| getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
override
def
size : Int
override
def
isEmpty : Boolean
elem.elem - the element to check for membership.elem is contained in this set.- can be used to remove a single element from
a set.override
def
stringPrefix : java.lang.String
toString representation.|
Scala Library
|
|