org.sisioh.baseunits.scala.time

CalendarYearMonth

class CalendarYearMonth extends Ordered[CalendarYearMonth] with Serializable

カレンダー上の特定の「年月」を表すクラス。

java.util.Dateと異なり、月未満(日以下)の概念を持っていない。また、 org.sisioh.baseunits.scala.time.TimePointと異なり、 その月1ヶ月間全ての範囲を表すクラスであり、特定の瞬間をモデリングしたものではない。

Linear Supertypes
Serializable, Serializable, Ordered[CalendarYearMonth], Comparable[CalendarYearMonth], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CalendarYearMonth
  2. Serializable
  3. Serializable
  4. Ordered
  5. Comparable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <(that: CalendarYearMonth): Boolean

    Definition Classes
    Ordered
  5. def <=(that: CalendarYearMonth): Boolean

    Definition Classes
    Ordered
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def >(that: CalendarYearMonth): Boolean

    Definition Classes
    Ordered
  9. def >=(that: CalendarYearMonth): Boolean

    Definition Classes
    Ordered
  10. lazy val asCalendarInterval: CalendarInterval

    このインスタンスが表現する年月の1日からその月末までの、期間を生成する。

    このインスタンスが表現する年月の1日からその月末までの、期間を生成する。

    生成する期間の開始日と終了日は期間に含む(閉じている)開区間を生成する。

    returns

    このインスタンスが表現する年月の1日からその月末までを表現する期間

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def asJavaCalendarOnMidnight(timeZone: TimeZone): Calendar

  13. lazy val asJavaCalendarOnMidnight: Calendar

  14. def asTimePoint(timeZone: TimeZone = TimeZones.Default): TimePoint

    指定したタイムゾーンにおける、このインスタンスが表す「年月」の1日0時0分0秒0ミリ秒の瞬間について org.sisioh.baseunits.scala.time.TimePoint 型のインスタンスを返す。

    指定したタイムゾーンにおける、このインスタンスが表す「年月」の1日0時0分0秒0ミリ秒の瞬間について org.sisioh.baseunits.scala.time.TimePoint 型のインスタンスを返す。

    timeZone

    タイムゾーン

    returns

    org.sisioh.baseunits.scala.time.TimePoint

  15. lazy val asYearInterval: CalendarInterval

    このインスタンスが表現する年月を含む年の元旦からその大晦日までの、期間を生成する。

    このインスタンスが表現する年月を含む年の元旦からその大晦日までの、期間を生成する。

    生成する期間の開始日と終了日は期間に含む(閉じている)開区間を生成する。

    returns

    このインスタンスが表現する年月の1日からその月末までを表現する期間

  16. def atCalendarDate(day: DayOfMonth): CalendarDate

    このインスタンスが表す年月で、引数dayで表す日を表す年月日を返す。

    このインスタンスが表す年月で、引数dayで表す日を表す年月日を返す。

    day

    日(1〜31)

    returns

    日時

    Exceptions thrown
    IllegalArgumentException

    引数dayがこの月に存在しない場合

  17. val breachEncapsulationOfMonth: MonthOfYear

    このオブジェクトのmonthフィールド(月)を返す。

    このオブジェクトのmonthフィールド(月)を返す。

    CAUTION: このメソッドは、このオブジェクトがカプセル化する要素を外部に暴露する。取り扱いには充分注意のこと。

    returns

  18. val breachEncapsulationOfYear: Int

    このオブジェクトのyearフィールド(西暦年をあらわす数)を返す。

    このオブジェクトのyearフィールド(西暦年をあらわす数)を返す。

    CAUTION: このメソッドは、このオブジェクトがカプセル化する要素を外部に暴露する。取り扱いには充分注意のこと。

    returns

    西暦年をあらわす数

  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def compare(other: CalendarYearMonth): Int

    年月日同士の比較を行う。

    年月日同士の比較を行う。

    相対的に過去である方を「小さい」と判断する。

    other

    比較対象

    returns

    java.util.Comparable compareTo(Object)に準じる

    Definition Classes
    CalendarYearMonth → Ordered
  21. def compareTo(that: CalendarYearMonth): Int

    Definition Classes
    Ordered → Comparable
  22. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def equals(obj: Any): Boolean

    Definition Classes
    CalendarYearMonth → AnyRef → Any
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    CalendarYearMonth → AnyRef → Any
  27. def isAfter(other: CalendarYearMonth): Boolean

    指定した日 otherが、このオブジェクトが表現する日よりも過去であるかどうかを検証する。

    指定した日 otherが、このオブジェクトが表現する日よりも過去であるかどうかを検証する。

    お互いが同一日時である場合は false を返す。

    other

    対象日時

    returns

    過去である場合はtrue、そうでない場合はfalse

  28. def isBefore(other: CalendarYearMonth): Boolean

    指定した年月 otherが、このオブジェクトが表現する年月よりも未来であるかどうかを検証する。

    指定した年月 otherが、このオブジェクトが表現する年月よりも未来であるかどうかを検証する。

    お互いが同一日時である場合は false を返す。

    other

    対象年月

    returns

    未来である場合はtrue、そうでない場合はfalse

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. lazy val lastDay: CalendarDate

    月末の日付を取得する。

    月末の日付を取得する。

    returns

    org.sisioh.baseunits.scala.time.DayOfMonth

  31. lazy val lastDayOfMonth: DayOfMonth

    月末の日を取得する。

    月末の日を取得する。

    returns

    org.sisioh.baseunits.scala.time.DayOfMonth

  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. lazy val nextMonth: CalendarYearMonth

    このインスタンスが表現する年月の翌月を返す。

    このインスタンスが表現する年月の翌月を返す。

    returns

    翌月

  34. final def notify(): Unit

    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  36. def plus(length: Duration): CalendarYearMonth

    このオブジェクトが表現する日付に、指定した長さの時間を加えた、未来の日付を取得する。

    このオブジェクトが表現する日付に、指定した長さの時間を加えた、未来の日付を取得する。

    引数の長さの単位が "月" 未満である場合は、元の年月をそのまま返す。

    length

    時間の長さ

    returns

    未来の年月

  37. def plusMonths(increment: Int): CalendarYearMonth

    このインスタンスが表現する年月の increment ヶ月後を返す。

    このインスタンスが表現する年月の increment ヶ月後を返す。

    incrementに負数を与えてもよい。

    increment

    加える月数

    returns

    計算結果

  38. lazy val previousDay: CalendarYearMonth

    このインスタンスが表現する年月の前月を返す。

    このインスタンスが表現する年月の前月を返す。

    returns

    前月

  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(pattern: String): String

    この日付を、指定したパターンで整形し、その文字列表現を取得する。

    この日付を、指定したパターンで整形し、その文字列表現を取得する。

    pattern

    パターン

    returns

    文字列表現

  41. def toString(): String

    この日付の文字列表現を取得する。

    この日付の文字列表現を取得する。

    java.text.SimpleDateFormatの使用に基づく "yyyy/MM" のパターンで整形する。

    Definition Classes
    CalendarYearMonth → AnyRef → Any
    See also

    java.lang.Object#toString()

  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[CalendarYearMonth]

Inherited from Comparable[CalendarYearMonth]

Inherited from AnyRef

Inherited from Any

Ungrouped