Class DataSize
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.DataSize
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
public class DataSize extends UntypedData
Store the size of an object.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataSize.StorageUnit
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
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 thisDataSize
object.int
hashCode()
void
setFileSize(java.lang.Long fileSize)
Setter for the file size of thisDataSize
object.java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Constructor Detail
-
DataSize
public DataSize(java.lang.Long size)
Public constructor createDataSize
with specified file size.- Parameters:
size
- the file size to set.
-
-
Method Detail
-
compareTo
public int compareTo(UntypedData datatype)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classUntypedData
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUntypedData
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classUntypedData
-
getFileSize
public java.lang.Long getFileSize()
Getter for the file size of thisDataSize
object.- Returns:
- the file size.
-
setFileSize
public void setFileSize(java.lang.Long fileSize)
Setter for the file size of thisDataSize
object.- Parameters:
fileSize
- the file size to set.
-
toString
public java.lang.String toString()
Description copied from class:UntypedData
- Overrides:
toString
in classUntypedData
-
-