org.eobjects.metamodel.util
Class ImmutableDate

java.lang.Object
  extended by java.util.Date
      extended by org.eobjects.metamodel.util.ImmutableDate
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Date>

Deprecated. MetaModel is not a Date API, use Joda time or live with java.util.Date.

@Deprecated
public final class ImmutableDate
extends Date

A Date implementation that is immutable and has a predictable (locale-indifferent) toString() method.

Author:
Kasper Sørensen
See Also:
Serialized Form

Constructor Summary
ImmutableDate(Date date)
          Deprecated.  
ImmutableDate(long time)
          Deprecated.  
 
Method Summary
 void setTime(long time)
          Deprecated. This mutator will throw an UnsupportedOperationException, since the date is ummutable.
 String toString()
          Deprecated.  
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableDate

public ImmutableDate(long time)
Deprecated. 

ImmutableDate

public ImmutableDate(Date date)
Deprecated. 
Method Detail

setTime

public void setTime(long time)
Deprecated. 
This mutator will throw an UnsupportedOperationException, since the date is ummutable.

Overrides:
setTime in class Date
Parameters:
time - new time to set

toString

public String toString()
Deprecated. 
Overrides:
toString in class Date


Copyright © 2007-2013. All Rights Reserved.