Packages

final class NonEmptySet[A] extends AnyRef

Self Type
NonEmptySet[A]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptySet
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(elem: A): NonEmptySet[A]

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

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

    elem

    the element to be added

    returns

    a new set that contains all elements of this set and that also contains elem.

  4. def ++(elems: Iterable[A]): NonEmptySet[A]

    Creates a new NonEmptySet by adding all elements contained in another collection to this NonEmptySet, omitting duplicates.

    Creates a new NonEmptySet by adding all elements contained in another collection to this NonEmptySet, omitting duplicates.

    This method takes a collection of elements and adds all elements, omitting duplicates, into NonEmptySet.

    Example:

    scala> val a = NonEmptySet(1, 2) ++ NonEmptySet(2, "a")
    a: zio.prelude.NonEmptySet[Any] = NonEmptySet(1, 2, a)
    elems

    the collection containing the elements to add.

    returns

    a new NonEmptySet with the given elements added, omitting duplicates.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def add(elem: A): NonEmptySet[A]

    Adds the elem to this NonEmptySet.

    Adds the elem to this NonEmptySet. Alias for +.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(that: Any): Boolean
    Definition Classes
    NonEmptySet → AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def flatten[B](implicit ev: <:<[A, NonEmptySet[B]]): NonEmptySet[B]

    Flattens a NonEmptySet of NonEmptySet values into a single NonEmptySet.

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    NonEmptySet → AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def map[B](f: (A) => B): NonEmptySet[B]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def peel: (A, Set[A])

    Returns an element of this NonEmptySet and the remainder, which is a (possibly empty) Set.

    Returns an element of this NonEmptySet and the remainder, which is a (possibly empty) Set.

    Annotations
    @inline()
  21. def peelNonEmpty: (A, Option[NonEmptySet[A]])

    Returns an element of this NonEmptySet and the remainder or None, if the remainder is empty.

  22. def remove(elem: A): Set[A]

    Removes the elem from this NonEmptySet.

    Removes the elem from this NonEmptySet. Alias for -.

  23. def removeNonEmpty(elem: A): Option[NonEmptySet[A]]

    removes the elem from NonEmptySet, returning Some(NonEmptySet) if there's anything left, otherwise None

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def tailNonEmpty: Option[NonEmptySet[A]]

    Returns the tail of this NonEmptySet if it exists or None otherwise.

  26. def toNonEmptyChunk: NonEmptyChunk[A]

    Converts this NonEmptySet to a NonEmptyChunk.

  27. def toNonEmptyList: NonEmptyList[A]

    Converts this NonEmptySet to a NonEmptyList.

  28. def toSet: Set[A]

    Converts this NonEmptySet to a Set.

  29. def toString(): String
    Definition Classes
    NonEmptySet → AnyRef → Any
  30. def union(that: Set[A]): NonEmptySet[A]

    Computes the union between of NonEmptySet and another set.

    Computes the union between of NonEmptySet and another set.

    that

    the set to form the union with.

    returns

    a new NonEmptySet consisting of all elements that are in this set or in the given set that.

  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped