Packages

  • package root

    JSON (JavaScript Object Notation) is a lightweight data-interchange format.

    JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages,

    JSON has only types of string, number, boolean, object, array, and null. This library includes additional types such as date, int, long, double, counter, binary, UUID, ObjectId (as in BSON), etc.

    It is very easy to parse a JSON object:

    val doc =
      json"""
      {
        "store": {
          "book": [
            {
              "category": "reference",
              "author": "Nigel Rees",
              "title": "Sayings of the Century",
              "price": 8.95
            },
            {
              "category": "fiction",
              "author": "Evelyn Waugh",
              "title": "Sword of Honour",
              "price": 12.99
            },
            {
              "category": "fiction",
              "author": "Herman Melville",
              "title": "Moby Dick",
              "isbn": "0-553-21311-3",
              "price": 8.99
            },
            {
              "category": "fiction",
              "author": "J. R. R. Tolkien",
              "title": "The Lord of the Rings",
              "isbn": "0-395-19395-8",
              "price": 22.99
            }
          ],
          "bicycle": {
            "color": "red",
            "price": 19.95
          }
        }
      }
      """

    The interpolator json parse a string to JsObject. To parse an array, use the interpolator jsan to JsArray. It is also okay to embed variable references directly in processed string literals.

    val x = 1
    json"""
      {
        "x": $x
      }
    """

    If the string is not a JSON object but any other valid JSON expression, one may use parseJson method to convert the string to a JsValue.

    "1".parseJson

    The json interpolator can only be applied to string literals. If you want to parse a string variable, the parseJson method can always be employed. If you know the string contains a JSON object, you may also use the method parseJsObject.

    val s = """{"x":1}"""
    s.parseJsObject

    To serialize a JSON value (of type JsValue) in compact mode, you can just use toString. To pretty print, use the method prettyPrint.

    doc.toString
    doc.prettyPrint

    With a JsObject or JsArray, you can refer to the individual elements with a variation of array syntax, like this:

    doc("store")("bicycle")("color")
    doc("store")("book")(0)("author")

    Note that we follow Scala's array access convention by () rather than [] in JavaScript.

    Besides, you can use the dot notation to access its fields/elements just like in JavaScript:

    doc.store.bicycle.color
    doc.store.book(0).author

    It is worth noting that we didn't define the type/schema of the document while Scala is a strong type language. In other words, we have both the type safe features of strong type language and the flexibility of dynamic language in this JSON library.

    If you try to access a non-exist field, JsUndefined is returned.

    scala> doc.book
    res11: unicorn.json.JsValue = undefined

    Although there are already several nice JSON libraries for Scala, the JSON objects are immutable by design, which is a natural choice for a functional language. For database, however, data mutation is necessary. Therefore, JsObject and JsArray are mutable data structures. You can set/add a field just like in JavaScript:

    json.store.bicycle.color = "green"

    To delete a field from JsObject, use remove method:

    doc.store.book(0) remove "price"

    It is same as setting it JsUndefined:

    doc.store.book(0).price = `JsUndefined`

    To delete an element from JsArray, the remove method will effectively remove it from the array. However, setting an element to undefined doesn't reduce the array size.

    // delete the first element and array size is smaller
    doc.store.book.remove(0)
    // set the first element to undefined but array size keeps same
    doc.store.book(0) = JsUndefined

    It is also possible to append an element or another array to JsArray:

    val a = JsArray(1, 2, 3, 4)
    a += 5
    
    a ++= JsArray(5, 6)

    Common iterative operations such as foreach, map, reduce can be applied to JsArray too.

    doc.store.book.asInstanceOf[JsArray].foreach { book =>
     println(book.price)
    }

    Because Scala is a static language, it is impossible to know doc.store.book is an array at compile time. So it is typed as generic JsValue, which is the parent type of specific JSON data types. Therefore, we use asInstanceOf[JsArray] to convert it to JsArray in order to use foreach.

    Definition Classes
    root
  • package smile
    Definition Classes
    root
  • package json

    Definition Classes
    smile
  • CompactPrinter
  • JsArray
  • JsBinary
  • JsBoolean
  • JsCounter
  • JsDate
  • JsDateTime
  • JsDecimal
  • JsDouble
  • JsInt
  • JsLong
  • JsNull
  • JsObject
  • JsObjectId
  • JsString
  • JsTime
  • JsTimestamp
  • JsUUID
  • JsUndefined
  • JsValue
  • JsValueOrdering
  • JsonHelper
  • JsonParser
  • JsonPrinter
  • JsonSerializer
  • ObjectId
  • ParserInput
  • PrettyPrinter

case class JsDate(value: LocalDate) extends JsValue with Ordered[JsDate] with Product with Serializable

An immutable date without a time-zone in the ISO-8601 calendar system, often viewed as year-month-day such as 2007-12-03.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsDate
  2. Serializable
  3. Product
  4. Equals
  5. Ordered
  6. Comparable
  7. JsValue
  8. Dynamic
  9. AnyRef
  10. Any
Implicitly
  1. by json2Date
  2. by orderingToOrdered
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JsDate(value: LocalDate)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from JsDate toany2stringadd[JsDate] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JsDate, B)
    Implicit
    This member is added by an implicit conversion from JsDate toArrowAssoc[JsDate] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def <(that: JsDate): Boolean
    Definition Classes
    Ordered
  6. def <=(that: JsDate): Boolean
    Definition Classes
    Ordered
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def >(that: JsDate): Boolean
    Definition Classes
    Ordered
  9. def >=(that: JsDate): Boolean
    Definition Classes
    Ordered
  10. def adjustInto(arg0: Temporal): Temporal
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → TemporalAdjuster
  11. def apply(range: Range): JsArray
    Definition Classes
    JsValue
  12. def apply(start: Int, end: Int, step: Int): JsArray
    Definition Classes
    JsValue
  13. def apply(start: Int, end: Int): JsArray
    Definition Classes
    JsValue
  14. def apply(index: Int): JsValue
    Definition Classes
    JsValue
  15. def apply(key: String): JsValue
    Definition Classes
    JsValue
  16. def applyDynamic(key: String)(index: Int): JsValue
    Definition Classes
    JsValue
  17. def asBoolean: Boolean
    Definition Classes
    JsValue
  18. def asDate: LocalDate
    Definition Classes
    JsDateJsValue
  19. def asDateTime: LocalDateTime
    Definition Classes
    JsValue
  20. def asDecimal: BigDecimal
    Definition Classes
    JsValue
  21. def asDouble: Double

    Converts this date to the Epoch Day.

    Converts this date to the Epoch Day. The Epoch Day count is a simple incrementing count of days where day 0 is 1970-01-01 (ISO).

    Definition Classes
    JsDateJsValue
  22. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  23. def asInt: Int
    Definition Classes
    JsValue
  24. def asLong: Long

    Converts this date to the Epoch Day.

    Converts this date to the Epoch Day. The Epoch Day count is a simple incrementing count of days where day 0 is 1970-01-01 (ISO).

    Definition Classes
    JsDateJsValue
  25. def asTime: LocalTime
    Definition Classes
    JsValue
  26. def asTimestamp: Timestamp
    Definition Classes
    JsValue
  27. def atStartOfDay(arg0: ZoneId): ZonedDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  28. def atStartOfDay(): LocalDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  29. def atTime(arg0: OffsetTime): OffsetDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  30. def atTime(arg0: Int, arg1: Int, arg2: Int, arg3: Int): LocalDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  31. def atTime(arg0: Int, arg1: Int, arg2: Int): LocalDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  32. def atTime(arg0: Int, arg1: Int): LocalDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  33. def atTime(arg0: LocalTime): LocalDateTime
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  34. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  35. def compactPrint: String
    Definition Classes
    JsValue
  36. def compare(that: JsDate): Int
    Definition Classes
    JsDate → Ordered
  37. def compareTo(that: JsDate): Int
    Definition Classes
    Ordered → Comparable
  38. def ensuring(cond: (JsDate) => Boolean, msg: => Any): JsDate
    Implicit
    This member is added by an implicit conversion from JsDate toEnsuring[JsDate] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  39. def ensuring(cond: (JsDate) => Boolean): JsDate
    Implicit
    This member is added by an implicit conversion from JsDate toEnsuring[JsDate] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  40. def ensuring(cond: Boolean, msg: => Any): JsDate
    Implicit
    This member is added by an implicit conversion from JsDate toEnsuring[JsDate] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  41. def ensuring(cond: Boolean): JsDate
    Implicit
    This member is added by an implicit conversion from JsDate toEnsuring[JsDate] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  42. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. def equals(o: Any): Boolean
    Definition Classes
    JsDate → Equals → AnyRef → Any
  44. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  45. def format(arg0: DateTimeFormatter): String
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  46. def get(key: String): Option[JsValue]
    Definition Classes
    JsValue
  47. def getChronology(): IsoChronology
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def getDayOfMonth(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  50. def getDayOfWeek(): DayOfWeek
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  51. def getDayOfYear(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  52. def getEra(): Era
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  53. def getLong(arg0: TemporalField): Long
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → TemporalAccessor
  54. def getMonth(): Month
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  55. def getMonthValue(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  56. def getYear(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  57. def hashCode(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → AnyRef → Any
  58. def isAfter(arg0: ChronoLocalDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  59. def isBefore(arg0: ChronoLocalDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  60. def isEqual(arg0: ChronoLocalDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  61. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  62. def isLeapYear(): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  63. def isSupported(arg0: TemporalUnit): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  64. def isSupported(arg0: TemporalField): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → TemporalAccessor
  65. def lengthOfMonth(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  66. def lengthOfYear(): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  67. def minus(arg0: Long, arg1: TemporalUnit): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  68. def minus(arg0: TemporalAmount): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  69. def minusDays(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  70. def minusMonths(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  71. def minusWeeks(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  72. def minusYears(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  73. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  74. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  75. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  76. def plus(arg0: Long, arg1: TemporalUnit): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  77. def plus(arg0: TemporalAmount): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  78. def plusDays(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  79. def plusMonths(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  80. def plusWeeks(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  81. def plusYears(arg0: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  82. def prettyPrint: String
    Definition Classes
    JsValue
  83. def productElementNames: Iterator[String]
    Definition Classes
    Product
  84. def query[R <: AnyRef](arg0: TemporalQuery[R]): R
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → TemporalAccessor
  85. def range(arg0: TemporalField): ValueRange
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → TemporalAccessor
  86. def remove(index: Int): JsValue
    Definition Classes
    JsValue
  87. def remove(key: String): Option[JsValue]
    Definition Classes
    JsValue
  88. def selectDynamic(key: String): JsValue
    Definition Classes
    JsValue
  89. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  90. def toEpochDay(): Long
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  91. def toString(): String

    The output will be in the ISO-8601 format uuuu-MM-dd.

    The output will be in the ISO-8601 format uuuu-MM-dd.

    Definition Classes
    JsDateJsValue → AnyRef → Any
  92. def until(arg0: ChronoLocalDate): Period
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate
  93. def until(arg0: Temporal, arg1: TemporalUnit): Long
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  94. def update(index: Int, value: JsValue): JsValue
    Definition Classes
    JsValue
  95. def update(key: String, value: JsValue): JsValue
    Definition Classes
    JsValue
  96. def updateDynamic(index: Int)(value: JsValue): JsValue
    Definition Classes
    JsValue
  97. def updateDynamic(key: String)(value: JsValue): JsValue
    Definition Classes
    JsValue
  98. val value: LocalDate
  99. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  100. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  101. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  102. def with(arg0: TemporalField, arg1: Long): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  103. def with(arg0: TemporalAdjuster): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate → ChronoLocalDate → Temporal
  104. def withDayOfMonth(arg0: Int): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  105. def withDayOfYear(arg0: Int): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  106. def withMonth(arg0: Int): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate
  107. def withYear(arg0: Int): LocalDate
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Definition Classes
    LocalDate

Shadowed Implicit Value Members

  1. def <(that: JsDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).<(that)
    Definition Classes
    Ordered
  2. def <=(that: JsDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).<=(that)
    Definition Classes
    Ordered
  3. def >(that: JsDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).>(that)
    Definition Classes
    Ordered
  4. def >=(that: JsDate): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).>=(that)
    Definition Classes
    Ordered
  5. def compare(that: JsDate): Int
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).compare(that)
    Definition Classes
    Ordered
  6. def compareTo(arg0: ChronoLocalDate): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: LocalDate).compareTo(arg0)
    Definition Classes
    LocalDate → ChronoLocalDate → Comparable
  7. def compareTo(that: JsDate): Int
    Implicit
    This member is added by an implicit conversion from JsDate toOrdered[JsDate] performed by method orderingToOrdered in scala.math.Ordered.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: Ordered[JsDate]).compareTo(that)
    Definition Classes
    Ordered → Comparable
  8. def equals(arg0: AnyRef): Boolean
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: LocalDate).equals(arg0)
    Definition Classes
    LocalDate → ChronoLocalDate → AnyRef → Any
  9. def get(arg0: TemporalField): Int
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: LocalDate).get(arg0)
    Definition Classes
    LocalDate → TemporalAccessor
  10. def toString(): String
    Implicit
    This member is added by an implicit conversion from JsDate toLocalDate performed by method json2Date in smile.json.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (jsDate: LocalDate).toString()
    Definition Classes
    LocalDate → ChronoLocalDate → AnyRef → Any

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from JsDate toStringFormat[JsDate] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (JsDate, B)
    Implicit
    This member is added by an implicit conversion from JsDate toArrowAssoc[JsDate] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[JsDate]

Inherited from Comparable[JsDate]

Inherited from JsValue

Inherited from Dynamic

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion json2Date fromJsDate to LocalDate

Inherited by implicit conversion orderingToOrdered fromJsDate to Ordered[JsDate]

Inherited by implicit conversion any2stringadd fromJsDate to any2stringadd[JsDate]

Inherited by implicit conversion StringFormat fromJsDate to StringFormat[JsDate]

Inherited by implicit conversion Ensuring fromJsDate to Ensuring[JsDate]

Inherited by implicit conversion ArrowAssoc fromJsDate to ArrowAssoc[JsDate]

Ungrouped