final class Nullable[+T] extends AnyVal
Allocation free alternative to scala.Option with similar interface. Using this in recognizers allows: 1) to avoid allocation of Some(x) 2) reading random memory location (where Some is stored) to access x
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Nullable
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Nullable(x: T)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
get: T
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
getOrElse[B >: T](default: ⇒ B): B
- Annotations
- @inline()
-
final
def
isDefined: Boolean
- Annotations
- @inline()
-
final
def
isEmpty: Boolean
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
toList: List[T]
- Annotations
- @inline()
-
final
def
toOption: Option[T]
- Annotations
- @inline()
-
def
toString(): String
- Definition Classes
- Any
- val x: T