Class DateString

  • All Implemented Interfaces:
    java.io.Serializable

    public class DateString
    extends java.lang.Object
    implements java.io.Serializable

    Class that represents an element transformation between a Date and a string in a specific format: "yyyy-MM-dd\'T\'HH:mm:ss.SSSXXX".

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 10/10/2020.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DateString​(java.lang.String dateStringParam)
      Constructor method for the class DateString.java.
      DateString​(java.util.Date dateParam)
      Constructor method for the class DateString.java.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getDate()
      Gets the value of the attribute date.
      java.lang.String getDateString()
      Gets the value of the attribute dateString.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DateString

        public DateString​(java.util.Date dateParam)
        Constructor method for the class DateString.java.
        Parameters:
        dateParam - Date to set.
      • DateString

        public DateString​(java.lang.String dateStringParam)
        Constructor method for the class DateString.java.
        Parameters:
        dateStringParam - Date to set in string format.
    • Method Detail

      • getDate

        public final java.util.Date getDate()
                                     throws java.text.ParseException
        Gets the value of the attribute date.
        Returns:
        the value of the attribute date.
        Throws:
        java.text.ParseException - In case of some error parsing the input date string.
      • getDateString

        public final java.lang.String getDateString()
        Gets the value of the attribute dateString.
        Returns:
        the value of the attribute dateString.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()