Class ImmutableDate

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Cloneable , java.lang.Comparable

    
    public final class ImmutableDate
    extends Date
                        

    This is an immutable version of a Date object.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ImmutableDate(Date date) Creates an immutable version of date from a provided Date object.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void setYear(int year)
      void setMonth(int month)
      void setDate(int day)
      void setHours(int hour)
      void setMinutes(int minute)
      void setSeconds(int second)
      void setTime(long milliseconds)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImmutableDate

        ImmutableDate(Date date)
        Creates an immutable version of date from a provided Date object.
        Parameters:
        date - Date to use for immutable version.