final case class MonthOps(underlying: Month) extends AnyVal with Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- MonthOps
- Serializable
- Serializable
- Product
- Equals
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new MonthOps(underlying: Month)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(months: Int): Month
Obtains the month-of-year which is the specified number of months after this one.
-
def
-(months: Int): Month
Obtains the month-of-year which is the specified number of months before this one.
- def ->[B](y: B): (MonthOps, B)
-
def
/(day: Int): MonthDay
Obtains a java.time.MonthDay by combining this month with the specified day-of-month.
Obtains a java.time.MonthDay by combining this month with the specified day-of-month.
- Exceptions thrown
DateTimeException
if the day-of-month is invalid for the month.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def =~(temporal: Temporal): Temporal
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (MonthOps) ⇒ Boolean, msg: ⇒ Any): MonthOps
- def ensuring(cond: (MonthOps) ⇒ Boolean): MonthOps
- def ensuring(cond: Boolean, msg: ⇒ Any): MonthOps
- def ensuring(cond: Boolean): MonthOps
- def formatted(fmtstr: String): String
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val underlying: Month
- def →[B](y: B): (MonthOps, B)
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from MonthOps to any2stringadd[MonthOps] performed by method any2stringadd in scala.Predef.
- 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:(monthOps: any2stringadd[MonthOps]).+(other)
- Definition Classes
- any2stringadd
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: