Class CmsClientDateBean

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<java.lang.Object>

    public class CmsClientDateBean
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<java.lang.Object>
    A bean containing a date, both as a 'long' value and a user-readable string representation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long m_date
      The actual date value.
      protected java.lang.String m_dateText
      The user-readable date string.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CmsClientDateBean()
      Empty default constructor.
        CmsClientDateBean​(long date, java.lang.String dateText)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object other)  
      long getDate()
      Returns the date.
      java.lang.String getDateText()
      Returns the dateText.
      • Methods inherited from class java.lang.Object

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

      • m_date

        protected long m_date
        The actual date value.
      • m_dateText

        protected java.lang.String m_dateText
        The user-readable date string.
    • Constructor Detail

      • CmsClientDateBean

        public CmsClientDateBean​(long date,
                                 java.lang.String dateText)
        Creates a new instance.

        Parameters:
        date - the date value
        dateText - the user-readable date string
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object other)
        Specified by:
        compareTo in interface java.lang.Comparable<java.lang.Object>
        See Also:
        Comparable.compareTo(java.lang.Object)
      • getDate

        public long getDate()
        Returns the date.

        Returns:
        the date
      • getDateText

        public java.lang.String getDateText()
        Returns the dateText.

        Returns:
        the dateText