simpleInt

kreuzberg.extras.forms.Codec.simpleInt
object simpleInt extends Codec[Int, String]

Attributes

Graph
Supertypes
trait Codec[Int, String]
class Object
trait Matchable
class Any
Self type
simpleInt.type

Members list

Value members

Concrete methods

override def decode(encoded: String): DecodingResult[Int]

Decodes the value, either an error or the decoded value.

Decodes the value, either an error or the decoded value.

Attributes

Definition Classes
override def encode(value: Int): String

Encodes a value into a string.

Encodes a value into a string.

Attributes

Definition Classes

Inherited methods

final def decodeOrThrow(transport: String): Int

Decode a value or throw.

Decode a value or throw.

Attributes

Inherited from:
Codec
def xmap[V](mapFn: Int => V, contraMapFn: V => Int): Codec[V, String]

Maps the encoded type to another type.

Maps the encoded type to another type.

Attributes

Inherited from:
Codec