Class/Object

com.twitter.scalding

RichDate

Related Docs: object RichDate | package scalding

Permalink

case class RichDate(timestamp: Long) extends Ordered[RichDate] with Product with Serializable

A value class wrapper for milliseconds since the epoch. Its tempting to extend this with AnyVal but this causes problem with Java code.

Source
RichDate.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[RichDate], Comparable[RichDate], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichDate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichDate(timestamp: Long)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(interval: Duration): RichDate

    Permalink
  4. def -(that: RichDate): AbsoluteDuration

    Permalink
  5. def -(interval: Duration): RichDate

    Permalink
  6. def <(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def <=(that: RichDate): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def >(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  10. def >=(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  11. def after(that: RichDate): Boolean

    Permalink
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def before(that: RichDate): Boolean

    Permalink
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def compare(that: RichDate): Int

    Permalink
    Definition Classes
    RichDate → Ordered
  16. def compareTo(that: RichDate): Int

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

    Permalink
    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    RichDate → Equals → AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def format(pattern: String)(implicit tz: TimeZone): String

    Permalink

    Use String.format to format the date, as opposed to toString, which uses SimpleDateFormat.

  21. final def getClass(): Class[_]

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

    Permalink

    Make sure the hashCode is the same as Date for the (questionable) choice to make them equal.

    Make sure the hashCode is the same as Date for the (questionable) choice to make them equal. this is the same as what java does (and only sane thing): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Date.java#989

    Definition Classes
    RichDate → AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val timestamp: Long

    Permalink
  29. def toCalendar(implicit tz: TimeZone): Calendar

    Permalink
  30. def toString(fmt: String)(implicit tz: TimeZone): String

    Permalink

    Use SimpleDateFormat to print the string

  31. def toString(): String

    Permalink
    Definition Classes
    RichDate → AnyRef → Any
  32. def value: Date

    Permalink
  33. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[RichDate]

Inherited from Comparable[RichDate]

Inherited from AnyRef

Inherited from Any

Ungrouped