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]
 
- Alphabetic
 - By Inheritance
 
- NonEmptySortedMap
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - Protected
 
Value Members
-   final  def !=(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def ##: Int
- Definition Classes
 - AnyRef → Any
 
 -    def +(elem: (K, V)): NonEmptySortedMap[K, V]
Creates a new
NonEmptySortedMapwith an additional element, unless the element is already present.Creates a new
NonEmptySortedMapwith 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.
 -    def ++(elems: Iterable[(K, V)]): NonEmptySortedMap[K, V]
Creates a new
NonEmptySortedMapby adding all elements contained in another collection to thisNonEmptySortedMap, omitting duplicates.Creates a new
NonEmptySortedMapby adding all elements contained in another collection to thisNonEmptySortedMap, 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
NonEmptySortedMapwith the given elements added, omitting duplicates.
 -   final  def ==(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -    def add(elem: (K, V)): NonEmptySortedMap[K, V]
Adds the
elemto thisNonEmptySortedMap.Adds the
elemto thisNonEmptySortedMap. Alias for+. -   final  def asInstanceOf[T0]: T0
- Definition Classes
 - Any
 
 -    def clone(): AnyRef
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.CloneNotSupportedException]) @native()
 
 -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -    def equals(that: Any): Boolean
- Definition Classes
 - NonEmptySortedMap → AnyRef → Any
 
 -    def finalize(): Unit
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.Throwable])
 
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 -    def hashCode(): Int
- Definition Classes
 - NonEmptySortedMap → AnyRef → Any
 
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -  def keySet: NonEmptySortedSet[K]
 -    def mapValues[V1](f: (V) => V1): NonEmptySortedMap[K, V1]
Produces a new non empty map where values mapped according to function f.
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @native()
 
 -    def peel: ((K, V), SortedMap[K, V])
Returns an element of this
NonEmptySortedMapand the remainder, which is a (possibly empty)SortedMap.Returns an element of this
NonEmptySortedMapand the remainder, which is a (possibly empty)SortedMap.- Annotations
 - @inline()
 
 -    def peelNonEmpty: ((K, V), Option[NonEmptySortedMap[K, V]])
Returns an element of this
NonEmptySortedMapand the remainder orNone, if the remainder is empty. -    def remove(elem: K): SortedMap[K, V]
Removes the
elemfrom thisNonEmptySortedMap.Removes the
elemfrom thisNonEmptySortedMap. Alias for-. -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -    def tailNonEmpty: Option[NonEmptySortedMap[K, V]]
Returns the tail of this
NonEmptySortedMapif it exists orNoneotherwise. -    def toMap: SortedMap[K, V]
Converts this
NonEmptySortedMapto aSortedMap. -    def toString(): String
- Definition Classes
 - NonEmptySortedMap → AnyRef → Any
 
 -  def values: NonEmptyChunk[V]
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 -   final  def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 -   final  def wait(arg0: Long): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException]) @native()