Class

eu.shiftforward.apso.Implicits

ApsoListMap

Related Doc: package Implicits

Permalink

implicit final class ApsoListMap[K, V] extends AnyVal

Implicit class that provides new methods for sequences of maps.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApsoListMap
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ApsoListMap(list: Seq[Map[K, V]])

    Permalink

    list

    the sequence of maps to which the new methods are provided.

Value Members

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

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

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. val list: Seq[Map[K, V]]

    Permalink

    the sequence of maps to which the new methods are provided.

  8. def toString(): String

    Permalink
    Definition Classes
    Any

Deprecated Value Members

  1. def sequenceOnMap(zero: Option[(Map[K, V]) ⇒ V]): Map[K, List[V]]

    Permalink

    Converts this list of maps into a map of lists.

    Converts this list of maps into a map of lists. The order of the elements is kept between structures. If a zero element is given, maps which do not contain certain keys are filled with the zero element, which is created by passing the whole original map to the zero function. This implies that all the lists in the given map will have the same length, corresponding to the size of the set of all keys. If a zero element is not given, only the elements present in this map are packed into the lists of the resulting map.

    zero

    a function that creates the zero element, based on the original map being processed.

    returns

    the map of lists converted from this map.

    Annotations
    @deprecated
    Deprecated

    (Since version 2017/07/13) This will be removed in a future version

  2. def sequenceOnMap(zero: Option[V] = None)(implicit dummy: DummyImplicit): Map[K, List[V]]

    Permalink

    Converts this list of maps into a map of lists.

    Converts this list of maps into a map of lists. The order of the elements is kept between structures. If a zero element is given, maps which do not contain certain keys are filled with the zero element, which effectively implies that all the lists in the given map will have the same length, corresponding to the size of the set of all keys. If a zero element is not given, only the elements present in this map are packed into the lists of the resulting map.

    zero

    the zero element, used as described above

    returns

    the map of lists converted from this map.

    Annotations
    @deprecated
    Deprecated

    (Since version 2017/07/13) This will be removed in a future version

Inherited from AnyVal

Inherited from Any

Ungrouped