in scala.collection.immutable.ListSet
class Node

protected `class` Node
  `extends` scala.collection.immutable.ListSet[A]
  `with` scala.ScalaObject

Constructor Summary
| `def` this ( elem : A )

Def Summary
`override` | `def` + ( e : A ) : scala.collection.immutable.ListSet[A] This method creates a new set with an additional element.
`override` | `def` - ( e : A ) : scala.collection.immutable.ListSet[A] `-` can be used to remove a single element from a set.
`override` | `def` contains ( e : A ) : scala.Boolean Checks if this set contains element `elem`.
`override` | `def` hashCode : scala.Int
`override` | `def` isEmpty : scala.Boolean Checks if this set is empty.
`override` | `def` size : scala.Int Returns the number of elements in this set.
`override` | `def` toList : scala.List[A] Transform this set into a list of all elements.

Constructor Detail

`def` this ( elem : A )

Def Detail

override `def` + ( e : A ) : scala.collection.immutable.ListSet[A]

  This method creates a new set with an additional element.

override `def` - ( e : A ) : scala.collection.immutable.ListSet[A]

  `-` can be used to remove a single element from a set.

override `def` contains ( e : A ) : scala.Boolean

  Checks if this set contains element `elem`.

param:
  elem the element to check for membership.
return:
  true, iff `elem` is contained in this set.

override `def` hashCode : scala.Int

override `def` isEmpty : scala.Boolean

  Checks if this set is empty.

return:
  true, iff there is no element in the set.

override `def` size : scala.Int

  Returns the number of elements in this set.

return:
  number of set elements.

override `def` toList : scala.List[A]

  Transform this set into a list of all elements.

return:
  a list which enumerates all elements of this set.