implicit final class JsonObjectType extends AnyVal
Provides extension methods to javax.json.JsonObject
.
- See also
- Alphabetic
- By Inheritance
- JsonObjectType
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JsonObjectType(json: JsonObject)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
%%(field: (String, JsonValue)): JsonObject
Creates new JsonObject with additional field.
Creates new JsonObject with additional field.
If the field already exists, its value is replaced.
-
def
++(other: JsonObject): JsonObject
Creates new JsonObject by merging other object with this one.
Creates new JsonObject by merging other object with this one.
If a field exists in both objects, the value from
other
is used. -
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getBigDecimal(name: String, default: BigDecimal): BigDecimal
Gets BigDecimal from object or returns default.
-
def
getBigDecimal(name: String): BigDecimal
Gets BigDecimal from object.
-
def
getBigInt(name: String, default: BigInt): BigInt
Gets BigInt from object or returns default.
-
def
getBigInt(name: String): BigInt
Gets BigInt from object.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getDouble(name: String, default: Double): Double
Gets Double from object or returns default.
-
def
getDouble(name: String): Double
Gets Double from object.
-
def
getFloat(name: String, default: Float): Float
Gets Float from object or returns default.
-
def
getFloat(name: String): Float
Gets Float from object.
-
def
getLong(name: String, default: Long): Long
Gets Long from object or returns default.
-
def
getLong(name: String): Long
Gets Long from object.
-
def
getOption[T](name: String)(implicit input: JsonInput[T]): Option[T]
Optionally gets value from object and converts it to requested type.
-
def
getOrElse[T](name: String, default: ⇒ T)(implicit input: JsonInput[T]): T
Gets value from object and converts it to requested type or returns evaluated default.
-
def
getShort(name: String, default: Short): Short
Gets Short from object or returns default.
-
def
getShort(name: String): Short
Gets Short from object.
-
def
getTry[T](name: String)(implicit input: JsonInput[T]): Try[T]
Tries to get value from object and convert it to requested type.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isIntegral(name: String): Boolean
Tests whether value in object is integral.
-
def
toString(): String
- Definition Classes
- Any