FromAny

trait FromAny[A] extends Adjunct
Companion
object
trait Adjunct
trait Writable
class Object
trait Matchable
class Any
object BooleanTop
class DoubleTop
object DoubleTop
object IntSeqTop
object IntTop
object LongSeqTop
object LongTop
object StringTop

Value members

Abstract methods

def fromAny(in: Any): Option[A]

Tries to extract a value of type A from an unknown input value. If the input value is generally incompatible with A, returns None.

Tries to extract a value of type A from an unknown input value. If the input value is generally incompatible with A, returns None.

The extraction should be direct and lossless. For example, a FromAny[Int] should not try to parse a string, nor should it cast a Long to an Int. On the other hand, a FromAny[Double] should accept a Float as input.

Inherited methods

def id: Int
Inherited from
Adjunct
def write(out: DataOutput): Unit
Inherited from
Adjunct