final case class TemporalAccessorOps(underlying: TemporalAccessor) extends AnyVal with Product with Serializable
Enriches a TemporalAccessor with additional methods.
- Alphabetic
- By Inheritance
- TemporalAccessorOps
- Serializable
- Serializable
- Product
- Equals
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TemporalAccessorOps(underlying: TemporalAccessor)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
#|>(field: TemporalField): Long
Queries this object to obtain the value of the specified field as a
Long
.Queries this object to obtain the value of the specified field as a
Long
.- Exceptions thrown
ArithmeticException
- if numeric overflow occurs.DateTimeException
- if a value for the field cannot be obtained.
-
def
#▹(field: TemporalField): Long
Queries this object to obtain the value of the specified field as a
Long
.Queries this object to obtain the value of the specified field as a
Long
.- Exceptions thrown
ArithmeticException
- if numeric overflow occurs.DateTimeException
- if a value for the field cannot be obtained.
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to any2stringadd[TemporalAccessorOps] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (TemporalAccessorOps, B)
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to ArrowAssoc[TemporalAccessorOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ensuring(cond: (TemporalAccessorOps) ⇒ Boolean, msg: ⇒ Any): TemporalAccessorOps
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to Ensuring[TemporalAccessorOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (TemporalAccessorOps) ⇒ Boolean): TemporalAccessorOps
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to Ensuring[TemporalAccessorOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): TemporalAccessorOps
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to Ensuring[TemporalAccessorOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): TemporalAccessorOps
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to Ensuring[TemporalAccessorOps] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to StringFormat[TemporalAccessorOps] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val underlying: TemporalAccessor
-
def
|>[A](query: TemporalQuery[A]): A
Queries this object using the specified java.time.temporal.TemporalQuery strategy object.
Queries this object using the specified java.time.temporal.TemporalQuery strategy object.
- Exceptions thrown
ArithmeticException
- if numeric overflow occurs.DateTimeException
- if unable to query.
-
def
→[B](y: B): (TemporalAccessorOps, B)
- Implicit
- This member is added by an implicit conversion from TemporalAccessorOps to ArrowAssoc[TemporalAccessorOps] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
-
def
▹[A](query: TemporalQuery[A]): A
Queries this object using the specified TemporalQuery strategy object.
Queries this object using the specified TemporalQuery strategy object.
- Exceptions thrown
ArithmeticException
- if numeric overflow occurs.DateTimeException
- if unable to query.
Scala Time
scala-time is a simple Scala wrapper for easier use JDK 1.8.0 (Java 8) time APIs
Overview
The library is contained in the scalatime package which includes extension methods provided via implicit conversion methods to Scala value classes.
For usage examples see below: