class ValueWrapper extends AnyRef
Represents a wrapper around a value, providing additional methods.
- Alphabetic
- By Inheritance
- ValueWrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ValueWrapper(_value: Value)
- _value
The value to wrap
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fieldsAndValues(): Map[Field, Value]
Retrieves the immediate visible fields and associated values for this specific value.
Retrieves the immediate visible fields and associated values for this specific value.
- returns
The map of field -> value pairings
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalArgumentException
If the value is not an object reference
-
def
fieldsAndValuesAsOption(): Option[Map[Field, Value]]
Retrieves the immediate visible fields and associated values for this specific value.
Retrieves the immediate visible fields and associated values for this specific value.
- returns
Some map of fields and values if available, otherwise None
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isObject: Boolean
Indicates whether or not the wrapped value is an object reference.
Indicates whether or not the wrapped value is an object reference.
- returns
True if the wrapped value is an object, otherwise false
-
val
isPrimitive: Boolean
Indicates whether or not the wrapped value is a primitive value.
Indicates whether or not the wrapped value is a primitive value.
- returns
True if the wrapped value is a primitive, otherwise false
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
objectValue(): AnyRef
Retrieves a representation of the object.
Retrieves a representation of the object.
- returns
The value representing the object reference (varies by type)
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalArgumentException
If the value is not an object reference
-
def
objectValueAsOption(): Option[AnyRef]
Retrieves a representation of the object.
Retrieves a representation of the object.
- returns
Some value if available, otherwise None
-
def
primitiveValue(): AnyVal
Retrieves the actual primitive value represented by this value.
Retrieves the actual primitive value represented by this value.
- returns
The primitive value represented by this instance
- Annotations
- @throws( ... )
- Exceptions thrown
IllegalArgumentException
If the value is not a primitive value
-
def
primitiveValueAsOption(): Option[AnyVal]
Retrieves the actual primitive value as an option.
Retrieves the actual primitive value as an option.
- returns
Some primitive value if available, otherwise None
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(maxRecursionLevel: Int): String
Constructs a string representing this value and recursively this value's fields (if it has any) up to the maximum level.
Constructs a string representing this value and recursively this value's fields (if it has any) up to the maximum level.
- maxRecursionLevel
The maximum level of recursion for building this value's string
- returns
The string representing this value
-
def
toString(): String
Constructs a string representing this value (with no recursion).
Constructs a string representing this value (with no recursion).
- returns
The string representing this value
- Definition Classes
- ValueWrapper → AnyRef → Any
-
def
value(): Any
Retrieves the actual value representing this value.
Retrieves the actual value representing this value.
- returns
The value instance if available
- Annotations
- @throws( ... )
- Exceptions thrown
Throwable
If value is neither a primitive nor an object
-
def
valueAsOption(): Option[Any]
Retrieves the actual value representing this value.
Retrieves the actual value representing this value.
- returns
Some(value) if available, otherwise None
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )