Class/Object

org.sisioh.baseunits.scala.time

CalendarYearMonth

Related Docs: object CalendarYearMonth | package time

Permalink

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: CalendarYearMonth): Boolean

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

    Permalink
    Definition Classes
    Ordered
  8. lazy val asCalendarInterval: CalendarInterval

    Permalink

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

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

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

    returns

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

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asJavaZonedDateTimeOnMidnight(zoneId: ZoneId): ZonedDateTime

    Permalink
  11. lazy val asJavaZonedDateTimeOnMidnight: ZonedDateTime

    Permalink
  12. def asTimePoint(zoneId: ZoneId = this.zoneId): TimePoint

    Permalink
  13. def asTimePoint(timeZone: TimeZone): TimePoint

    Permalink

    指定したタイムゾーンにおける、このインスタンスが表す「年月」の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

  14. lazy val asYearInterval: CalendarInterval

    Permalink

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

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

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

    returns

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

  15. lazy val asYearMonth: YearMonth

    Permalink
  16. def atCalendarDate(day: DayOfMonth): CalendarDate

    Permalink

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

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

    day

    日(1〜31)

    returns

    日時

    Exceptions thrown

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

  17. val breachEncapsulationOfMonth: MonthOfYear

    Permalink

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

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

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

    returns

  18. val breachEncapsulationOfYear: Int

    Permalink

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

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

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

    returns

    西暦年をあらわす数

  19. val breachEncapsulationOfZoneId: ZoneId

    Permalink
  20. def clone(): AnyRef

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

    Permalink

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

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

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

    other

    比較対象

    returns

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

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

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

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

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

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

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

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

    Permalink

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

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

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

    other

    対象日時

    returns

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

  29. def isBefore(other: CalendarYearMonth): Boolean

    Permalink

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

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

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

    other

    対象年月

    returns

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

  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. lazy val lastDay: CalendarDate

    Permalink

    月末の日付を取得する。

    月末の日付を取得する。

    returns

    org.sisioh.baseunits.scala.time.DayOfMonth

  32. lazy val lastDayOfMonth: DayOfMonth

    Permalink

    月末の日を取得する。

    月末の日を取得する。

    returns

    org.sisioh.baseunits.scala.time.DayOfMonth

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

    Permalink
    Definition Classes
    AnyRef
  34. lazy val nextMonth: CalendarYearMonth

    Permalink

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

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

    returns

    翌月

  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

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

    Permalink

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

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

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

    length

    時間の長さ

    returns

    未来の年月

  38. def plusMonths(increment: Int): CalendarYearMonth

    Permalink

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

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

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

    increment

    加える月数

    returns

    計算結果

  39. lazy val previousDay: CalendarYearMonth

    Permalink

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

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

    returns

    前月

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

    Permalink
    Definition Classes
    AnyRef
  41. def toString(pattern: String): String

    Permalink

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

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

    pattern

    パターン

    returns

    文字列表現

  42. def toString(): String

    Permalink

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

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

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

    Definition Classes
    CalendarYearMonth → AnyRef → Any
    See also

    java.lang.Object#toString()

  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def asJavaCalendarOnMidnight(timeZone: TimeZone): Calendar

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1.18) Use asJavaZonedDateTimeOnMidnight method instead

  2. lazy val asJavaCalendarOnMidnight: Calendar

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1.18) Use asJavaZonedDateTimeOnMidnight property instead

  3. val timeZone: TimeZone

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1.18) Use zoneId property instead

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[CalendarYearMonth]

Inherited from Comparable[CalendarYearMonth]

Inherited from AnyRef

Inherited from Any

Ungrouped