public class DataSize extends UntypedData
| Modifier and Type | Class and Description |
|---|---|
static class |
DataSize.StorageUnit |
ALL_RIGHTS_RESERVED, EMPTY, string| Constructor and Description |
|---|
DataSize(java.lang.Long size)
Public constructor create
DataSize with specified file size. |
| Modifier and Type | Method and 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() |
getString, setString, toHTMLpublic DataSize(java.lang.Long size)
DataSize with specified file size.size - the file size to set.public int compareTo(UntypedData datatype)
compareTo in interface java.lang.Comparable<UntypedData>compareTo in class UntypedDatapublic int hashCode()
hashCode in class UntypedDatapublic boolean equals(java.lang.Object obj)
equals in class UntypedDatapublic java.lang.Long getFileSize()
DataSize object.public void setFileSize(java.lang.Long fileSize)
DataSize object.fileSize - the file size to set.public java.lang.String toString()
UntypedDatatoString in class UntypedData