Packages

c

little.json.Implicits

JsonObjectType

implicit final class JsonObjectType extends AnyVal

Provides extension methods to javax.json.JsonObject.

See also

JsonValueType, JsonArrayType

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsonObjectType
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsonObjectType(json: JsonObject)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. 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.

  4. 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.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def getBigDecimal(name: String, default: BigDecimal): BigDecimal

    Gets BigDecimal from object or returns default.

  8. def getBigDecimal(name: String): BigDecimal

    Gets BigDecimal from object.

  9. def getBigInt(name: String, default: BigInt): BigInt

    Gets BigInt from object or returns default.

  10. def getBigInt(name: String): BigInt

    Gets BigInt from object.

  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. def getDouble(name: String, default: Double): Double

    Gets Double from object or returns default.

  13. def getDouble(name: String): Double

    Gets Double from object.

  14. def getFloat(name: String, default: Float): Float

    Gets Float from object or returns default.

  15. def getFloat(name: String): Float

    Gets Float from object.

  16. def getLong(name: String, default: Long): Long

    Gets Long from object or returns default.

  17. def getLong(name: String): Long

    Gets Long from object.

  18. def getOption[T](name: String)(implicit input: JsonInput[T]): Option[T]

    Optionally gets value from object and converts it to requested type.

  19. 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.

  20. def getShort(name: String, default: Short): Short

    Gets Short from object or returns default.

  21. def getShort(name: String): Short

    Gets Short from object.

  22. def getTry[T](name: String)(implicit input: JsonInput[T]): Try[T]

    Tries to get value from object and convert it to requested type.

  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isIntegral(name: String): Boolean

    Tests whether value in object is integral.

  25. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped