Packages

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HasDefault
  2. Adjunct
  3. Writable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def defaultValue: A
  2. abstract def id: Int
    Definition Classes
    Adjunct

Concrete Value Members

  1. def write(out: DataOutput): Unit
    Definition Classes
    AdjunctWritable