scala.Enumeration

ValueSet

class ValueSet extends Set[Value] with SetLike[Value, ValueSet]

A class for sets of values Iterating through this set will yield values in increasing order of their ids.

Inherits

  1. Set
  2. Set
  3. SetLike
  4. Subtractable
  5. Addable
  6. GenericSetTemplate
  7. Function1
  8. Iterable
  9. Iterable
  10. IterableLike
  11. Equals
  12. Traversable
  13. Immutable
  14. Traversable
  15. GenericTraversableTemplate
  16. TraversableLike
  17. HasNewBuilder
  18. AnyRef
  19. Any

Type Members

  1. class WithFilter extends AnyRef

    A class supporting filtered operations

Value Members

  1. def &(that: Set[Value]): ValueSet

    Computes the intersection between this set and another set

  2. def &~(that: Set[Value]): ValueSet

    The difference of this set and another set

  3. def **(that: Set[Value]): ValueSet

    This method is an alias for intersect

  4. def +(value: Value): ValueSet

    Creates a new set with an additional element, unless the element is already present

  5. def +(elem1: Value, elem2: Value, elems: Value*): ValueSet

    Creates a new set with additional elements

  6. def ++(iter: Iterator[Value]): ValueSet

    Creates a new set by adding all elements produced by an iterator to this set

  7. def ++(elems: Traversable[Value]): ValueSet

    Creates a new set by adding all elements contained in another collection to this set

  8. def ++[B >: Value, That](that: Iterator[B])(bf: CanBuildFrom[ValueSet, B, That]): That

    Concatenates this set with the elements of an iterator

  9. def ++[B >: Value, That](that: Traversable[B])(bf: CanBuildFrom[ValueSet, B, That]): That

    Concatenates this set with the elements of a traversable collection

  10. def -(value: Value): ValueSet

    Creates a new set with a given element removed from this set

  11. def -(elem1: Value, elem2: Value, elems: Value*): ValueSet

    Creates a new set from this set with some elements removed

  12. def --(iter: Iterator[Value]): ValueSet

    Creates a new set from this set by removing all elements produced by an iterator

  13. def --(elems: Traversable[Value]): ValueSet

    Creates a new set from this set by removing all elements of another collection

  14. def /:[B](z: B)(op: (B, Value) ⇒ B): B

    Applies a binary operator to a start value and all elements of this set, going left to right

  15. def :\[B](z: B)(op: (Value, B) ⇒ B): B

    Applies a binary operator to all elements of this set and a start value, going right to left

  16. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this set to a string builder

  17. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this set to a string builder using a separator string

  18. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this set to a string builder using start, end, and separator strings

  19. def andThen[A](g: (Boolean) ⇒ A): (Value) ⇒ A

    (f andThen g)(x) == g(f(x))

  20. def apply(elem: Value): Boolean

    Tests if some element is contained in this set

  21. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind

  22. def companion: GenericCompanion[Set[A][A]]

    The factory companion object that builds instances of class Set

  23. def compose[A](g: (A) ⇒ Value): (A) ⇒ Boolean

    (f compose g)(x) == f(g(x))

  24. def contains(v: Value): Boolean

    Tests if some element is contained in this set

  25. def copyToArray[B >: Value](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this set to an array

  26. def copyToArray[B >: Value](xs: Array[B]): Unit

    Copies elements of this set to an array

  27. def copyToArray[B >: Value](xs: Array[B], start: Int): Unit

    Copies elements of this set to an array

  28. def copyToBuffer[B >: Value](dest: Buffer[B]): Unit

    Copies all elements of this set to a buffer

  29. def count(p: (Value) ⇒ Boolean): Int

    Counts the number of elements in the set which satisfy a predicate

  30. def diff(that: Set[Value]): ValueSet

    Computes the difference of this set and another set

  31. def drop(n: Int): ValueSet

    Selects all elements except first n ones

  32. def dropRight(n: Int): ValueSet

    Selects all elements except first n ones

  33. def dropWhile(p: (Value) ⇒ Boolean): ValueSet

    Drops longest prefix of elements that satisfy a predicate

  34. def elements: Iterator[Value]

  35. def empty: ValueSet

  36. def equals(that: Any): Boolean

    Compares this set with another object for equality

  37. def exists(p: (Value) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this set

  38. def filter(p: (Value) ⇒ Boolean): ValueSet

    Selects all elements of this set which satisfy a predicate

  39. def filterNot(p: (Value) ⇒ Boolean): ValueSet

    Selects all elements of this set which do not satisfy a predicate

  40. def find(p: (Value) ⇒ Boolean): Option[Value]

    Finds the first element of the set satisfying a predicate, if any

  41. def first: Value

  42. def firstOption: Option[Value]

    None if iterable is empty

  43. def flatMap[B, That](f: (Value) ⇒ Traversable[B])(bf: CanBuildFrom[ValueSet, B, That]): That

    Builds a new collection by applying a function to all elements of this set and concatenating the results

  44. def flatten[B](asTraversable: (Value) ⇒ Traversable[B]): Set[B]

    Converts this set of traversable collections into a set in which all element collections are concatenated

  45. def foldLeft[B](z: B)(op: (B, Value) ⇒ B): B

    Applies a binary operator to a start value and all elements of this set, going left to right

  46. def foldRight[B](z: B)(op: (Value, B) ⇒ B): B

    Applies a binary operator to all elements of this set and a start value, going right to left

  47. def forall(p: (Value) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this set

  48. def foreach[U](f: (Value) ⇒ U): Unit

    Applies a function f to all elements of this set

  49. def genericBuilder[B]: Builder[B, Set[B]]

    The generic builder that builds instances of Set at arbitrary element types

  50. def groupBy[K](f: (Value) ⇒ K): Map[K, ValueSet]

    Partitions this set into a map of sets according to some discriminator function

  51. def hasDefiniteSize: Boolean

    Tests whether this set is known to have a finite size

  52. def hashCode(): Int

    Returns a hash code value for the object

  53. def head: Value

    Selects the first element of this set

  54. def headOption: Option[Value]

    Optionally selects the first element

  55. val ids: BitSet

  56. def init: ValueSet

    Selects all elements except the last

  57. def intersect(that: Set[Value]): ValueSet

    Computes the intersection between this set and another set

  58. def isEmpty: Boolean

    Tests if this set is empty

  59. def iterator: Iterator[Value]

    Creates a new iterator over all elements contained in this iterable object

  60. def last: Value

    Selects the last element

  61. def lastOption: Option[Value]

    Optionally selects the last element

  62. def map[B, That](f: (Value) ⇒ B)(bf: CanBuildFrom[ValueSet, B, That]): That

    Builds a new collection by applying a function to all elements of this set

  63. def max[B >: Value](cmp: Ordering[B]): Value

    Finds the largest element

  64. def min[B >: Value](cmp: Ordering[B]): Value

    Finds the smallest element

  65. def mkString: String

    Displays all elements of this set in a string

  66. def mkString(sep: String): String

    Displays all elements of this set in a string using a separator string

  67. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this set in a string using start, end, and separator strings

  68. def nonEmpty: Boolean

    Tests whether the set is not empty

  69. def partialMap[B, That](pf: PartialFunction[Value, B])(bf: CanBuildFrom[ValueSet, B, That]): That

    Builds a new collection by applying a partial function to all elements of this set on which the function is defined

  70. def partition(p: (Value) ⇒ Boolean): (ValueSet, ValueSet)

    Partitions this set in two sets according to a predicate

  71. def product[B >: Value](num: Numeric[B]): B

    Multiplies up the elements of this collection

  72. def projection: IterableView[Value, ValueSet]

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection

  73. def reduceLeft[B >: Value](op: (B, Value) ⇒ B): B

    Applies a binary operator to all elements of this set, going left to right

  74. def reduceLeftOption[B >: Value](op: (B, Value) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this set, going left to right

  75. def reduceRight[B >: Value](op: (Value, B) ⇒ B): B

    Applies a binary operator to all elements of this set, going right to left

  76. def reduceRightOption[B >: Value](op: (Value, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this set, going right to left

  77. def repr: ValueSet

    The collection of type set underlying this TraversableLike object

  78. def sameElements[B >: Value](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this set

  79. def size: Int

    The size of this set

  80. def slice(from: Int, until: Int): ValueSet

    Selects an interval of elements

  81. def span(p: (Value) ⇒ Boolean): (ValueSet, ValueSet)

    Spits this set into a prefix/suffix pair according to a predicate

  82. def splitAt(n: Int): (ValueSet, ValueSet)

    Splits this set into two at a given position

  83. def stringPrefix: String

    Defines the prefix of this object's toString representation

  84. def subsetOf(that: Set[Value]): Boolean

    Tests whether this set is a subset of another set

  85. def sum[B >: Value](num: Numeric[B]): B

    Sums up the elements of this collection

  86. def tail: ValueSet

    Selects all elements except the first

  87. def take(n: Int): ValueSet

    Selects first n elements

  88. def takeRight(n: Int): ValueSet

    Selects last n elements

  89. def takeWhile(p: (Value) ⇒ Boolean): ValueSet

    Takes longest prefix of elements that satisfy a predicate

  90. def toArray[B >: Value](arg0: ClassManifest[B]): Array[B]

    Converts this set to an array

  91. def toIndexedSeq[B >: Value]: IndexedSeq[B]

    Converts this set to an indexed sequence

  92. def toIterable: Iterable[Value]

    Converts this set to an iterable collection

  93. def toList: List[Value]

    Converts this set to a list

  94. def toSeq: Seq[Value]

    Converts this set to a sequence

  95. def toSet[B >: Value]: Set[B]

    Converts this set to a set

  96. def toStream: Stream[Value]

    Converts this set to a stream

  97. def toString(): String

    Converts this set to a string

  98. def transpose[B](asTraversable: (Value) ⇒ Traversable[B]): Set[Set[B]]

    Transposes this set of traversable collections into

  99. def union(that: Set[Value]): ValueSet

    Computes the union between of set and another set

  100. def unzip[A1, A2](asPair: (Value) ⇒ (A1, A2)): (Set[A1], Set[A2])

    Converts this set of pairs into two collections of the first and second halfs of each pair

  101. def view(from: Int, until: Int): IterableView[Value, ValueSet]

    Creates a non-strict view of a slice of this set

  102. def view: IterableView[Value, ValueSet]

    Creates a non-strict view of this set

  103. def withFilter(p: (Value) ⇒ Boolean): WithFilter

    Creates a non-strict filter of this set

  104. def zip[A1 >: Value, B, That](that: Iterable[B])(bf: CanBuildFrom[ValueSet, (A1, B), That]): That

    Returns a set formed from this set and another iterable collection by combining corresponding elements in pairs

  105. def zipAll[B, A1 >: Value, That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[ValueSet, (A1, B), That]): That

    Returns a set formed from this set and another iterable collection by combining corresponding elements in pairs

  106. def zipWithIndex[A1 >: Value, That](bf: CanBuildFrom[ValueSet, (A1, Int), That]): That

    Zips this set with its indices

  107. def |(that: Set[Value]): ValueSet

    Computes the union between this set and another set

Instance constructors

  1. new ValueSet()