abstract
class
Flaggable[T] extends AnyRef
Instance Constructors
-
new
Flaggable()
Abstract Value Members
-
abstract
def
parse(s: String): T
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
default: Option[T]
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
show(t: T): String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A type class providing evidence for parsing type
T
as a flag value.Any class that is to be provided as a flaggable value must have an accompanying implicit
Flaggable
(contained within a companion object of the class in question) for converting a string to an object of that type. For instance, to make a hypothetical type calledFoo
flaggable:For simple implicit definitions based on existing
String => T
functions, use theFlaggable.mandatory
function:[1] https://en.wikipedia.org/wiki/Type_class