object NonEmptyMap
- Alphabetic
- By Inheritance
- NonEmptyMap
- 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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[K, V](elem: (K, V), others: (K, V)*): NonEmptyMap[K, V]
Creates a
NonEmptyMap
with the specified elements.Creates a
NonEmptyMap
with the specified elements.- elem
an element of the created
NonEmptyMap
- others
the remaining elements of the created
NonEmptyMap
- returns
a new
NonEmptyMap
with elementselem
andothers
- def apply[K, V](elem: (K, V), others: Iterable[(K, V)]): NonEmptyMap[K, V]
- 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(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromIterable[K, V](head: (K, V), tail: Iterable[(K, V)]): NonEmptyMap[K, V]
Constructs a
NonEmptyMap
from an element andIterable
. - def fromIterableOption[K, V](iterable: Iterable[(K, V)]): Option[NonEmptyMap[K, V]]
Constructs a
NonEmptyMap
from anIterable
orNone
otherwise. - def fromMap[K, V](elem: (K, V), others: Map[K, V]): NonEmptyMap[K, V]
Constructs a
NonEmptyMap
from an element andMap
. - def fromMapOption[K, V](map: Map[K, V]): Option[NonEmptyMap[K, V]]
Constructs a
NonEmptyMap
from aMap
orNone
otherwise. - def fromNonEmptyChunk[K, V](elems: NonEmptyChunk[(K, V)]): NonEmptyMap[K, V]
Constructs a
NonEmptyMap
from aNonEmptyChunk
. - def fromNonEmptyList[K, V](elems: NonEmptyList[(K, V)]): NonEmptyMap[K, V]
Constructs a
NonEmptyMap
from aNonEmptyList
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groupByFromNonEmptyChunk[A, K](from: NonEmptyChunk[A])(f: (A) => K): NonEmptyMap[K, NonEmptyChunk[A]]
from a non-empty chunk we can create a non-empty map of non-empty chunks
- def groupByFromNonEmptyList[A, K](from: NonEmptyList[A])(f: (A) => K): NonEmptyMap[K, NonEmptyList[A]]
from a non-empty list we can create a non-empty map of non-empty list
- def groupByFromNonEmptySet[A, K](from: NonEmptySet[A])(f: (A) => K): NonEmptyMap[K, NonEmptySet[A]]
from a non-empty set we can create a non-empty map of non-empty sets
- def groupByOption[A, K](from: Iterable[A])(f: (A) => K): Option[NonEmptyMap[K, Iterable[A]]]
GroupByOption function returns an option of a nonEmpty map instead of a map because by definition the elements will be non-empty - returns None if from is
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 single[K, V](head: (K, V)): NonEmptyMap[K, V]
Constructs a
NonEmptyMap
with the specified single value. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit def toMap[K, V](nonEmptyMap: NonEmptyMap[K, V]): Map[K, V]
Provides an implicit conversion from
NonEmptyMap
to theMap
for interoperability with Scala's collection library. - def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply[K, V](arg: NonEmptyMap[K, V]): Some[((K, V), Map[K, 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()