object Formats
- Alphabetic
- By Inheritance
- Formats
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bigDecimalFormat(precision: Option[(Int, Int)]): Formatter[BigDecimal]
Default formatter for the
BigDecimal
type. - implicit val bigDecimalFormat: Formatter[BigDecimal]
Default formatter for the
BigDecimal
type with no precision - implicit def booleanFormat: Formatter[Boolean]
Default formatter for the
Boolean
type. - implicit def byteFormat: Formatter[Byte]
Default formatter for the
Byte
type. - implicit def charFormat: Formatter[Char]
Default formatter for the
Char
type. - def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dateFormat(pattern: String, timeZone: TimeZone = TimeZone.getDefault): Formatter[Date]
Formatter for the
java.util.Date
type.Formatter for the
java.util.Date
type.- pattern
a date pattern, as specified in
java.time.format.DateTimeFormatter
.- timeZone
the
java.util.TimeZone
to use for parsing and formatting
- implicit val dateFormat: Formatter[Date]
Default formatter for the
java.util.Date
type with patternyyyy-MM-dd
. - implicit def doubleFormat: Formatter[Double]
Default formatter for the
Double
type. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit def floatFormat: Formatter[Float]
Default formatter for the
Float
type. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ignoredFormat[A](value: A): Formatter[A]
Formatter for ignored values.
Formatter for ignored values.
- value
As we ignore this parameter in binding/unbinding we have to provide a default value.
- implicit def intFormat: Formatter[Int]
Default formatter for the
Int
type. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def localDateFormat(pattern: String): Formatter[LocalDate]
Formatter for the
java.time.LocalDate
type.Formatter for the
java.time.LocalDate
type.- pattern
a date pattern as specified in
java.time.format.DateTimeFormatter
.
- implicit val localDateFormat: Formatter[LocalDate]
Default formatter for
java.time.LocalDate
type with patternyyyy-MM-dd
. - def localDateTimeFormat(pattern: String, zoneId: ZoneId = java.time.ZoneId.systemDefault()): Formatter[LocalDateTime]
Formatter for the
java.time.LocalDateTime
type.Formatter for the
java.time.LocalDateTime
type.- pattern
a date pattern as specified in
java.time.format.DateTimeFormatter
.- zoneId
the
java.time.ZoneId
to use for parsing and formatting
- implicit val localDateTimeFormat: Formatter[LocalDateTime]
Default formatter for
java.time.LocalDateTime
type with patternyyyy-MM-dd
. - def localTimeFormat(pattern: String): Formatter[LocalTime]
Formatter for the
java.time.LocalTime
type.Formatter for the
java.time.LocalTime
type.- pattern
a date pattern as specified in
java.time.format.DateTimeFormatter
.
- implicit val localTimeFormat: Formatter[LocalTime]
Default formatter for
java.time.LocalTime
type with patternHH:mm:ss
. - implicit def longFormat: Formatter[Long]
Default formatter for the
Long
type. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parsing[T](parse: (String) => T, errMsg: String, errArgs: Seq[Any])(key: String, data: Map[String, String]): Either[Seq[FormError], T]
Helper for formatters binders
Helper for formatters binders
- parse
Function parsing a String value into a T value, throwing an exception in case of failure
- errArgs
Error to set in case of parsing failure
- key
Key name of the field to parse
- data
Field data
- implicit def shortFormat: Formatter[Short]
Default formatter for the
Short
type. - def sqlDateFormat(pattern: String): Formatter[Date]
Formatter for the
java.sql.Date
type.Formatter for the
java.sql.Date
type.- pattern
a date pattern as specified in
java.time.DateTimeFormatter
.
- implicit val sqlDateFormat: Formatter[Date]
Default formatter for
java.sql.Date
type with patternyyyy-MM-dd
. - def sqlTimestampFormat(pattern: String, timeZone: TimeZone = TimeZone.getDefault): Formatter[Timestamp]
Formatter for the
java.sql.Timestamp
type.Formatter for the
java.sql.Timestamp
type.- pattern
a date pattern as specified in
java.time.DateTimeFormatter
.- timeZone
the
java.util.TimeZone
to use for parsing and formatting
- implicit val sqlTimestampFormat: Formatter[Timestamp]
Default formatter for
java.sql.Timestamp
type with patternyyyy-MM-dd HH:mm:ss
. - implicit def stringFormat: Formatter[String]
Default formatter for the
String
type. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def uuidFormat: Formatter[UUID]
Default formatter for the
java.util.UUID
type. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()