Class ReferenceFile

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.Date getCreatedDate()
      Get the created date of the object
      java.nio.file.Path getFile()  
      java.lang.Long getFileLength()  
      java.lang.Long getFileRevisionNumber()
      Get the version of the instance.
      java.lang.Long getId()
      Get the numerical identifier for this object
      java.lang.String getLabel()
      Get a human readable label for this object.
      java.util.Date getModifiedDate()
      Get the date that this object was last modified
      int hashCode()  
      void incrementFileRevisionNumber()
      Internally modify the file revision number to something new.
      void setFile​(java.nio.file.Path file)  
      void setFileLength​(java.lang.Long fileLength)  
      void setId​(java.lang.Long id)
      Set the numerical identifier for this object
      void setModifiedDate​(java.util.Date modifiedDate)
      Set the modification time of this object
      • Methods inherited from class java.lang.Object

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

      • ReferenceFile

        public ReferenceFile()
      • ReferenceFile

        public ReferenceFile​(java.nio.file.Path file)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IridaThing
        Get a human readable label for this object.
        Specified by:
        getLabel in interface IridaThing
        Returns:
        a human-readable label for the object.
      • getId

        public java.lang.Long getId()
        Description copied from interface: IridaThing
        Get the numerical identifier for this object
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • setId

        public void setId​(java.lang.Long id)
        Description copied from interface: MutableIridaThing
        Set the numerical identifier for this object
        Specified by:
        setId in interface MutableIridaThing
        Parameters:
        id - The ID to set
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Description copied from interface: MutableIridaThing
        Get the date that this object was last modified
        Specified by:
        getModifiedDate in interface MutableIridaThing
        Returns:
        Date object of the modified date
      • setModifiedDate

        public void setModifiedDate​(java.util.Date modifiedDate)
        Description copied from interface: MutableIridaThing
        Set the modification time of this object
        Specified by:
        setModifiedDate in interface MutableIridaThing
        Parameters:
        modifiedDate - The date where this object was modified
      • getFile

        public java.nio.file.Path getFile()
      • setFile

        public void setFile​(java.nio.file.Path file)
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<java.lang.Long>
        Returns:
        A Date object of the created date
      • getFileLength

        public java.lang.Long getFileLength()
      • setFileLength

        public void setFileLength​(java.lang.Long fileLength)