Class/Object

zio.prelude

NonEmptySortedMap

Related Docs: object NonEmptySortedMap | package prelude

Permalink

final class NonEmptySortedMap[K, V] extends AnyRef

A non-empty wrapper for the scala immutable map. Note - this does not attempt to implement all features of map but what the author considers to be the "normal ones".

Self Type
NonEmptySortedMap[K, V]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptySortedMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(elem: (K, V)): NonEmptySortedMap[K, V]

    Permalink

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

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

    elem

    the element to be added

    returns

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

  4. def ++(elems: Iterable[(K, V)]): NonEmptySortedMap[K, V]

    Permalink

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

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

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

    Example:

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

    the collection containing the elements to add.

    returns

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

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add(elem: (K, V)): NonEmptySortedMap[K, V]

    Permalink

    Adds the elem to this NonEmptySortedMap.

    Adds the elem to this NonEmptySortedMap. Alias for +.

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    NonEmptySortedMap → AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    NonEmptySortedMap → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def keySet: NonEmptySortedSet[K]

    Permalink
  16. def mapValues[V1](f: (V) ⇒ V1): NonEmptySortedMap[K, V1]

    Permalink

    Produces a new non empty map where values mapped according to function f.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def peel: ((K, V), SortedMap[K, V])

    Permalink

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

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

    Annotations
    @inline()
  21. def peelNonEmpty: ((K, V), Option[NonEmptySortedMap[K, V]])

    Permalink

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

  22. def remove(elem: K): SortedMap[K, V]

    Permalink

    Removes the elem from this NonEmptySortedMap.

    Removes the elem from this NonEmptySortedMap. Alias for -.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def tailNonEmpty: Option[NonEmptySortedMap[K, V]]

    Permalink

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

  25. def toMap: SortedMap[K, V]

    Permalink

    Converts this NonEmptySortedMap to a SortedMap.

  26. def toString(): String

    Permalink
    Definition Classes
    NonEmptySortedMap → AnyRef → Any
  27. def values: NonEmptyChunk[V]

    Permalink
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped