HasDefault

trait HasDefault[A] extends Adjunct

A type class saying some default value is provided for a type. This is often a convention, such as "zero" for numeric types, or "empty" for containers etc. It is used to avoid having to initialize objects with explicit default values, but care must be taken to take those conventional defaults into account.

Note that the class in no covariant in A, as this causes selectivity problems with, for example, Span and SpanLike.

Companion:
object
trait Adjunct
trait Writable
class Object
trait Matchable
class Any
object BooleanTop.type
class DoubleTop
object DoubleTop.type
object IntTop.type
object LongTop.type
object StringTop.type
trait SeqLike[A]
trait SeqLikeEq[A]
object BooleanSeqTop.type
trait SeqLikeOrd[A]
trait SeqLikeNum[A]
object IntSeqTop.type
object LongSeqTop.type
object DoubleSeqTop.type
trait SeqLikeToNum[A]

Value members

Abstract methods

Inherited methods

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