Class MediumAccessData

  • All Implemented Interfaces:
    java.io.Serializable

    public class MediumAccessData
    extends java.lang.Object
    implements java.io.Serializable
    Holds information about the access to a given medium.
    Author:
    jschwarz
    See Also:
    Serialized Form
    • Constructor Detail

      • MediumAccessData

        public MediumAccessData​(java.util.Date creationDate,
                                java.util.Date lastWriteAccess)
        Literal constructor. The parameters must not be null.
        Parameters:
        creationDate - getCreationDate()
        lastWriteAccess - getLastWriteAccess()
    • Method Detail

      • getCreationDate

        public java.util.Date getCreationDate()
        Returns:
        The date and time the medium was created.
      • getLastWriteAccess

        public java.util.Date getLastWriteAccess()
        Returns:
        The date and time the medium was last written to
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • fromNative

        public static MediumAccessData fromNative​(com.saperion.jna.applsrv.m2j.natives.MediumInfoType mediumInfoType)
        Constructs an instance of MediumAccessData from a given wrapper of the corresponding native type.
        Parameters:
        mediumInfoType - An instance of MediumInfoType corresponding to the same medium.
        Returns:
        The instance of MediumAccessData corresponding to the same medium a the given MediumInfoType does.