Class DataSize

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DataSize.StorageUnit  
    • Constructor Summary

      Constructors 
      Constructor Description
      DataSize​(java.lang.Long size)
      Public constructor create DataSize with specified file size.
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(UntypedData datatype)
      boolean equals​(java.lang.Object obj)  
      java.lang.Long getFileSize()
      Getter for the file size of this DataSize object.
      int hashCode()  
      void setFileSize​(java.lang.Long fileSize)
      Setter for the file size of this DataSize object.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

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

      • DataSize

        public DataSize​(java.lang.Long size)
        Public constructor create DataSize with specified file size.
        Parameters:
        size - the file size to set.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class UntypedData
      • getFileSize

        public java.lang.Long getFileSize()
        Getter for the file size of this DataSize object.
        Returns:
        the file size.
      • setFileSize

        public void setFileSize​(java.lang.Long fileSize)
        Setter for the file size of this DataSize object.
        Parameters:
        fileSize - the file size to set.