final case class IntOps(underlying: Int) extends AnyVal with Product with Serializable
Enriches a scala.Long with methods for obtaining Period instances.
- Source
- IntOps.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- IntOps
- Serializable
- Serializable
- Product
- Equals
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (IntOps, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
day: Period
Obtains a Period representing a number of days.
-
def
days: Period
Obtains a Period representing a number of days.
- def ensuring(cond: (IntOps) ⇒ Boolean, msg: ⇒ Any): IntOps
- def ensuring(cond: (IntOps) ⇒ Boolean): IntOps
- def ensuring(cond: Boolean, msg: ⇒ Any): IntOps
- def ensuring(cond: Boolean): IntOps
- def formatted(fmtstr: String): String
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
month: Period
Obtains a Period representing a number of months.
-
def
months: Period
Obtains a Period representing a number of months.
- val underlying: Int
-
def
week: Period
Obtains a Period representing a number of weeks.
-
def
weeks: Period
Obtains a Period representing a number of weeks.
-
def
year: Period
Obtains a Period representing a number of years.
-
def
years: Period
Obtains a Period representing a number of years.
- def →[B](y: B): (IntOps, B)
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: