made.annotation.whenAbsent
See thewhenAbsent companion object
class whenAbsent[+T](v: => T) extends MetaAnnotation
Provides an explicit default value for a constructor parameter with highest priority in the default resolution chain.
The value is by-name (=> T) so it is evaluated lazily each time default is called on the corresponding made.MadeFieldElem.
Priority chain: @whenAbsent > @optionalParam > constructor default.
Type parameters
- T
-
the type of the default value
Value parameters
- v
-
the default value, evaluated lazily
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
-
class MetaAnnotationtrait RefiningAnnotationtrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Members list
In this article