Class Timestamp

  • All Implemented Interfaces:
    Serializable

    public class Timestamp
    extends Object
    implements Serializable
    Class used to hold a provided timestamp and a potential receipt as a result of fetching timestamp.
    Since:
    4.0.0
    Author:
    erlend
    See Also:
    Serialized Form
    • Constructor Detail

      • Timestamp

        public Timestamp​(Date date,
                         network.oxalis.vefa.peppol.common.model.Receipt receipt)
        Constructor accepting a timestamp and potentially a receipt.
        Parameters:
        date - Timestamp to be available.
        receipt - Receipt to be available.
    • Method Detail

      • getDate

        public Date getDate()
        Fetch timestamp.
        Returns:
        Timestamp.
      • getReceipt

        public Optional<network.oxalis.vefa.peppol.common.model.Receipt> getReceipt()
        Fetch receipt.
        Returns:
        Optional receipt.