Scala Library
|
|
class
LinkedHashSet[A]
extends
Set[A] with
FlatHashTable[A]Values and Variables inherited from FlatHashTable | |
table, tableSize, threshold |
Method Summary | |
def
|
+=
(elem : A) : Unit
Add a new element to the set.
|
def
|
-=
(elem : A) : Unit
Removes a single element from a set.
|
def
|
add (elem : A) : Boolean |
override def
|
clear
: Unit
Removes all elements from the set. After this operation is completed,
the set will be empty.
|
override def
|
clone
: Set[A]
Return a clone of this set.
|
def
|
contains
(elem : A) : Boolean
Checks if this set contains element
elem . |
override def
|
elements
: Iterator[A]
Creates a new iterator over all elements contained in this
object.
|
def
|
remove (elem : A) : Boolean |
Methods inherited from FlatHashTable | |
loadFactor, loadFactorDenum, initialSize, size, findEntry, containsEntry, addEntry, removeEntry, elemHashCode, improve, index |
Methods inherited from Set | |
update, +=, ++=, ++=, +, +, ++, ++, incl, -=, --=, --=, -, -, --, --, excl, intersect, retain, <<, readOnly |
Methods inherited from Set | |
apply, isEmpty, subsetOf, *, **, equals, hashCode, toArray, stringPrefix |
Methods inherited from Collection | |
toString |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, partition, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, projection, hasDefiniteSize |
Methods inherited from Function1 | |
compose, andThen |
Methods inherited from AnyRef | |
getClass, 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.elem -
the element to be addedelem -
The element to be removed.override
def
clear : Unit
Scala Library
|
|