ConfigWriter

pureconfig.ConfigWriter
See theConfigWriter companion object
trait ConfigWriter[A]

Trait for objects capable of writing objects of a given type to ConfigValues.

Type parameters

A

the type of objects writable by this ConfigWriter

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait ConfigConvert[A]

Members list

Value members

Abstract methods

def to(a: A): ConfigValue
Implicitly added by arrayWriter

Converts a type A to a ConfigValue.

Converts a type A to a ConfigValue.

Value parameters

a

The instance of A to convert

Attributes

Returns

The ConfigValue obtained from the A instance

def to(a: A): ConfigValue
Implicitly added by mapWriter

Converts a type A to a ConfigValue.

Converts a type A to a ConfigValue.

Value parameters

a

The instance of A to convert

Attributes

Returns

The ConfigValue obtained from the A instance

def to(a: A): ConfigValue
Implicitly added by optionWriter

Converts a type A to a ConfigValue.

Converts a type A to a ConfigValue.

Value parameters

a

The instance of A to convert

Attributes

Returns

The ConfigValue obtained from the A instance

def to(a: A): ConfigValue
Implicitly added by traversableWriter

Converts a type A to a ConfigValue.

Converts a type A to a ConfigValue.

Value parameters

a

The instance of A to convert

Attributes

Returns

The ConfigValue obtained from the A instance

def to(a: A): ConfigValue

Converts a type A to a ConfigValue.

Converts a type A to a ConfigValue.

Value parameters

a

The instance of A to convert

Attributes

Returns

The ConfigValue obtained from the A instance

Concrete methods

def contramap[B](f: B => A): ConfigWriter[B]
Implicitly added by arrayWriter

Applies a function to values before passing them to this writer.

Applies a function to values before passing them to this writer.

Type parameters

B

the input type of the function

Value parameters

f

the function to apply to input values

Attributes

Returns

a ConfigWriter that writes the results of this writer when the input values are mapped using f.

def contramap[B](f: B => A): ConfigWriter[B]
Implicitly added by mapWriter

Applies a function to values before passing them to this writer.

Applies a function to values before passing them to this writer.

Type parameters

B

the input type of the function

Value parameters

f

the function to apply to input values

Attributes

Returns

a ConfigWriter that writes the results of this writer when the input values are mapped using f.

def contramap[B](f: B => A): ConfigWriter[B]
Implicitly added by optionWriter

Applies a function to values before passing them to this writer.

Applies a function to values before passing them to this writer.

Type parameters

B

the input type of the function

Value parameters

f

the function to apply to input values

Attributes

Returns

a ConfigWriter that writes the results of this writer when the input values are mapped using f.

def contramap[B](f: B => A): ConfigWriter[B]
Implicitly added by traversableWriter

Applies a function to values before passing them to this writer.

Applies a function to values before passing them to this writer.

Type parameters

B

the input type of the function

Value parameters

f

the function to apply to input values

Attributes

Returns

a ConfigWriter that writes the results of this writer when the input values are mapped using f.

def contramap[B](f: B => A): ConfigWriter[B]

Applies a function to values before passing them to this writer.

Applies a function to values before passing them to this writer.

Type parameters

B

the input type of the function

Value parameters

f

the function to apply to input values

Attributes

Returns

a ConfigWriter that writes the results of this writer when the input values are mapped using f.

def mapConfig(f: ConfigValue => ConfigValue): ConfigWriter[A]
Implicitly added by arrayWriter

Maps a function over the results of this writer.

Maps a function over the results of this writer.

Value parameters

f

the function to map over this writer

Attributes

Returns

a ConfigWriter returning the results of this writer mapped by f.

def mapConfig(f: ConfigValue => ConfigValue): ConfigWriter[A]
Implicitly added by mapWriter

Maps a function over the results of this writer.

Maps a function over the results of this writer.

Value parameters

f

the function to map over this writer

Attributes

Returns

a ConfigWriter returning the results of this writer mapped by f.

def mapConfig(f: ConfigValue => ConfigValue): ConfigWriter[A]
Implicitly added by optionWriter

Maps a function over the results of this writer.

Maps a function over the results of this writer.

Value parameters

f

the function to map over this writer

Attributes

Returns

a ConfigWriter returning the results of this writer mapped by f.

def mapConfig(f: ConfigValue => ConfigValue): ConfigWriter[A]
Implicitly added by traversableWriter

Maps a function over the results of this writer.

Maps a function over the results of this writer.

Value parameters

f

the function to map over this writer

Attributes

Returns

a ConfigWriter returning the results of this writer mapped by f.

def mapConfig(f: ConfigValue => ConfigValue): ConfigWriter[A]

Maps a function over the results of this writer.

Maps a function over the results of this writer.

Value parameters

f

the function to map over this writer

Attributes

Returns

a ConfigWriter returning the results of this writer mapped by f.