Package io.supabase.utils
Class FileSize
java.lang.Object
io.supabase.utils.FileSize
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<FileSize>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) boolean
long
int
hashCode()
-
Constructor Details
-
FileSize
-
FileSize
public FileSize(long fileSize)
-
-
Method Details
-
getFileSizeAsB
-
getFileSizeAsKB
-
getFileSizeAsMB
-
getFileSizeAsGB
-
getFileSize
public long getFileSize() -
deserialize
public FileSize deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<FileSize>
- Throws:
com.google.gson.JsonParseException
-
equals
-
hashCode
public int hashCode()
-