Class

cats.data

NonEmptyMapOps

Related Doc: package data

Permalink

sealed class NonEmptyMapOps[K, A] extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptyMapOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NonEmptyMapOps(value: NonEmptyMap[K, A])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(as: NonEmptyMap[K, A]): NonEmptyMap[K, A]

    Permalink

    Alias for concat

  4. def -(key: K): SortedMap[K, A]

    Permalink

    Removes a key from this map, returning a new SortedMap.

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def ===(that: NonEmptyMap[K, A])(implicit A: kernel.Eq[A]): Boolean

    Permalink

    Typesafe equality operator.

    Typesafe equality operator.

    This method is similar to == except that it only allows two NonEmptySet[A] values to be compared to each other, and uses equality provided by Eq[_] instances, rather than using the universal equality provided by .equals.

  7. def add(ka: (K, A)): NonEmptyMap[K, A]

    Permalink

    Adds a key-value pair to this map, returning a new NonEmptyMap.

  8. def apply(key: K): Option[A]

    Permalink

    Alias for lookup

  9. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def concat(as: NonEmptyMap[K, A]): NonEmptyMap[K, A]

    Permalink

    Appends this NEM to another NEM, producing a new NonEmptyMap.

  12. def contains(key: K): Boolean

    Permalink

    Checks whether this map contains a binding for the given key.

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def exists(f: (A) ⇒ Boolean): Boolean

    Permalink

    Tests whether a predicate holds for at least one element of this map.

  16. def filter(p: (A) ⇒ Boolean): SortedMap[K, A]

    Permalink

    Filters all elements of this map that do not satisfy the given predicate.

  17. def filterNot(p: (A) ⇒ Boolean): SortedMap[K, A]

    Permalink

    Filters all elements of this map that satisfy the given predicate.

  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def find(f: (A) ⇒ Boolean): Option[(K, A)]

    Permalink

    Returns the first value along with its key, that matches the given predicate.

  20. def foldLeft[B](b: B)(f: (B, A) ⇒ B): B

    Permalink

    Left-associative fold using f.

  21. def foldRight[B](lb: Eval[B])(f: (A, Eval[B]) ⇒ Eval[B]): Eval[B]

    Permalink

    Right-associative fold using f.

  22. def forall(p: (A) ⇒ Boolean): Boolean

    Permalink

    Tests whether a predicate holds for all elements of this map.

  23. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def head: (K, A)

    Permalink

    Returns the first key-value pair of this map.

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def keys: NonEmptySet[K]

    Permalink

    Returns a SortedSet containing all the keys of this map.

  28. def last: (K, A)

    Permalink

    Returns the last key-value pair of this map.

  29. def length: Int

    Permalink

    Returns the amount of key-value pars in this map.

  30. def lookup(k: K): Option[A]

    Permalink

    Optionally returns the value associated with the given key.

  31. def map[B](f: (A) ⇒ B): NonEmptyMap[K, B]

    Permalink

    Applies f to all the elements

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

    Permalink
    Definition Classes
    AnyRef
  33. def nonEmptyTraverse[G[_], B](f: (A) ⇒ G[B])(implicit G: Apply[G]): G[NonEmptyMap[K, B]]

    Permalink

    Given a function which returns a G effect, thread this effect through the running of this function on all the values in this map, returning an NonEmptyMap[K, B] in a G context.

  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. def reduce(implicit S: kernel.Semigroup[A]): A

    Permalink

    Reduce using the Semigroup of A

  37. def reduceLeft(f: (A, A) ⇒ A): A

    Permalink

    Left-associative reduce using f.

  38. def reduceLeftTo[B](f: (A) ⇒ B)(g: (B, A) ⇒ B): B

    Permalink

    Apply f to the "initial element" of fa and combine it with every other value using the given function g.

  39. def reduceRight(f: (A, Eval[A]) ⇒ Eval[A]): Eval[A]

    Permalink

    Right-associative reduce using f.

  40. def reduceRightTo[B](f: (A) ⇒ B)(g: (A, Eval[B]) ⇒ Eval[B]): Eval[B]

    Permalink

    Apply f to the "initial element" of this map and lazily combine it with every other value using the given function g.

  41. def show(implicit A: Show[A], K: Show[K]): String

    Permalink

    Typesafe stringification method.

    Typesafe stringification method.

    This method is similar to .toString except that it stringifies values according to Show[_] instances, rather than using the universal .toString method.

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

    Permalink
    Definition Classes
    AnyRef
  43. def tail: SortedMap[K, A]

    Permalink

    Returns all the key-value pairs, except for the first.

  44. def toNel: NonEmptyList[(K, A)]

    Permalink

    Returns a non empty list of map contents, similarly to Map#toList

  45. def toSortedMap: SortedMap[K, A]

    Permalink

    Converts this map to a SortedMap.

  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. def updateWith(k: K)(f: (A) ⇒ A): NonEmptyMap[K, A]

    Permalink

    Applies f to the value stored at k.

    Applies f to the value stored at k. If lookup misses, does nothing.

  48. val value: NonEmptyMap[K, A]

    Permalink
  49. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped