CaseClassUtils
Attributes
- Graph
-
- Supertypes
- Self type
-
CaseClassUtils.type
Members list
Value members
Concrete methods
Visit a case class and apply a function to each field, then collect the results into a block of unit.
Visit a case class and apply a function to each field, then collect the results into a block of unit.
Attributes
- Returns
-
Unit
Create an instance of a case class using a tuple.
Create an instance of a case class using a tuple.
Value parameters
- tuple
-
The tuple to pass to the constructor.
Attributes
- Returns
-
An instance of the case class.
Create an instance of a case class using its primary constructor.
Create an instance of a case class using its primary constructor.
Value parameters
- args
-
The arguments to pass to the constructor.
Attributes
- Returns
-
An instance of the case class.
Check if a type is a case class.
Check if a type is a case class.
Attributes
Transform a case class into an expression of tuple of output values returned by the provided function. Filter out returned values that are None.
Transform a case class into an expression of tuple of output values returned by the provided function. Filter out returned values that are None.
Value parameters
- function
-
The function to apply to each field.
- value
-
The instance of the case class to transform.
Attributes
- Returns
-
A list of output values.
Transform a case class into a list of output values returned by the provided function. Filter out returned values that are None.
Transform a case class into a list of output values returned by the provided function. Filter out returned values that are None.
Value parameters
- function
-
The function to apply to each field.
- value
-
The instance of the case class to transform.
Attributes
- Returns
-
A list of output values.
Transform a case class into a list of output values returned by the provided function. Filter out returned values that are None.
Transform a case class into a list of output values returned by the provided function. Filter out returned values that are None.
Value parameters
- function
-
The function to apply to each field.
- value
-
The instance of the case class to transform.
Attributes
- Returns
-
A list of output values.
Transform a case class into a tuple of output values returned by the provided function. Filter out returned values that are None.
Transform a case class into a tuple of output values returned by the provided function. Filter out returned values that are None.
Value parameters
- function
-
The function to apply to each field.
- value
-
The instance of the case class to transform.
Attributes
- Returns
-
A list of output values.
Visit a case class and apply a function to each field using a statements cache.
Visit a case class and apply a function to each field using a statements cache.
Attributes
- Returns
-
Unit