EnumFormats

enumeratum.values.EnumFormats$

Created by Lloyd on 4/13/16.

Copyright 2016

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def formats[ValueType, EntryType <: ValueEnumEntry[ValueType]](e: ValueEnum[ValueType, EntryType])(implicit baseReads: Reads[ValueType], baseWrites: Writes[ValueType]): Format[EntryType]

Returns a Formats for the provided ValueEnum based on the given base Reads and Writes for the Enum's value type

Returns a Formats for the provided ValueEnum based on the given base Reads and Writes for the Enum's value type

Attributes

def reads[ValueType, EntryType <: ValueEnumEntry[ValueType]](e: ValueEnum[ValueType, EntryType])(implicit baseReads: Reads[ValueType]): Reads[EntryType]

Returns a Reads for the provided ValueEnum based on the given base Reads for the Enum's value type

Returns a Reads for the provided ValueEnum based on the given base Reads for the Enum's value type

Attributes

def writes[ValueType, EntryType <: ValueEnumEntry[ValueType]](e: ValueEnum[ValueType, EntryType])(implicit baseWrites: Writes[ValueType]): Writes[EntryType]

Returns a Writes for the provided ValueEnum based on the given base Writes for the Enum's value type

Returns a Writes for the provided ValueEnum based on the given base Writes for the Enum's value type

Attributes

Implicits

Implicits

implicit val charFormat: Format[Char]

Format for Char

Format for Char

Attributes