Class

io.cucumber.scala.Implicits

ScalaDataTable

Related Doc: package Implicits

Permalink

implicit class ScalaDataTable extends AnyRef

DataTable extension class providing methods to read a DataTable as Scala types.

Note: we do not filter out null values because users might rely on the keyset in their implementation.

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

Instance Constructors

  1. new ScalaDataTable(table: DataTable)

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def asScalaDataTable: ScalaDataTable

    Permalink
  6. def asScalaList: Seq[Option[String]]

    Permalink

    Provides a view of the DataTable as a simple list of values.

    Provides a view of the DataTable as a simple list of values. Equivalent of .asList() but returned as Scala collection types without null values.

    returns

    list of values

  7. def asScalaList[T](implicit ev: ClassTag[T]): Seq[Option[T]]

    Permalink

    Provides a view of the DataTable as a simple list of values.

    Provides a view of the DataTable as a simple list of values. Equivalent of .asList[T](classOf[T]) but returned as Scala collection types without null values.

    See also asScalaRawList[T] if you don't need Options (for instance if you are using a DataTableType).

    T

    cell type

    returns

    list of values

  8. def asScalaLists: Seq[Seq[Option[String]]]

    Permalink

    Provides a view of the DataTable as a matrix.

    Provides a view of the DataTable as a matrix. Equivalent of .asLists() but returned as Scala collection types without null values.

    returns

    matrix

  9. def asScalaLists[T](implicit ev: ClassTag[T]): Seq[Seq[Option[T]]]

    Permalink

    Provides a view of the DataTable as a matrix.

    Provides a view of the DataTable as a matrix. Equivalent of .asLists[T](classOf[T]) but returned as Scala collection types without null values.

    See also asScalaRawLists[T] if you don't need Options (for instance if you are using a DataTableType).

    T

    cell type

    returns

    matrix

  10. def asScalaMap[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Map[K, Option[V]]

    Permalink

    Provides a view of the DataTable as a key-value map where key are the first column values.

    Provides a view of the DataTable as a key-value map where key are the first column values. Equivalent of .asMap[K,V](classOf[K],classOf[V]) but returned as Scala collection types without null values.

    K

    key type

    V

    value type

    returns

    key-value map

  11. def asScalaMaps: Seq[Map[String, Option[String]]]

    Permalink

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of .asMaps() but returned as Scala collection types without null values.

    returns

    sequence of rows

  12. def asScalaMaps[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Seq[Map[K, Option[V]]]

    Permalink

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of .asMaps[K,V](classOf[K], classOf[V]) but returned as Scala collection types without null values.

    See also asScalaRawMaps[T] if you don't need Options (for instance if you are using a DataTableType).

    K

    key type

    V

    value type

    returns

    sequence of rows

  13. def asScalaRawList[T](implicit ev: ClassTag[T]): Seq[T]

    Permalink

    Provides a view of the DataTable as a simple list of values.

    Provides a view of the DataTable as a simple list of values. Equivalent of .asList[T](classOf[T]) but returned as Scala collection types.

    See also asScalaList[T].

    T

    cell/row type

    returns

    list of values

  14. def asScalaRawLists[T](implicit ev: ClassTag[T]): Seq[Seq[T]]

    Permalink

    Provides a view of the DataTable as a matrix.

    Provides a view of the DataTable as a matrix. Equivalent of .asLists[T](classOf[T]) but returned as Scala collection types.

    See also asScalaLists[T]

    T

    cell type

    returns

    matrix

  15. def asScalaRawMaps[K, V](implicit evK: ClassTag[K], evV: ClassTag[V]): Seq[Map[K, V]]

    Permalink

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name.

    Provides a view of the DataTable as a sequence of rows, each row being a key-value map where key is the column name. Equivalent of .asMaps[K,V](classOf[K], classOf[V]) but returned as Scala collection types.

    See also asScalaMaps[T].

    K

    key type

    V

    value type

    returns

    sequence of rows

  16. def asScalaRowColumnMap: Map[String, Map[String, Option[String]]]

    Permalink

    Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.

    Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.

    returns

    map of rows

  17. def asScalaRowColumnMap[K](implicit evK: ClassTag[K]): Map[K, Map[String, Option[String]]]

    Permalink

    Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.

    Provides a view of the DataTable as a full table: a key-value map of row where keys are the first column values and each row being itself a key-value map where key is the column name.

    K

    key type

    returns

    map of rows

  18. def asScalaRowMap: Map[String, Seq[Option[String]]]

    Permalink

    Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.

    Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.

    returns

    map of rows

  19. def asScalaRowMap[K](implicit evK: ClassTag[K]): Map[K, Seq[Option[String]]]

    Permalink

    Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.

    Provides a view of the DataTable as a key-value map of row where keys are the first column values and each row being a list of values.

    K

    key type

    returns

    map of rows

  20. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped