Class FileSize

java.lang.Object
io.supabase.utils.FileSize
All Implemented Interfaces:
com.google.gson.JsonDeserializer<FileSize>

public class FileSize extends Object implements com.google.gson.JsonDeserializer<FileSize>
  • Constructor Details

    • FileSize

      public FileSize(String fileSizeWithUnit)
    • FileSize

      public FileSize(long fileSize)
  • Method Details

    • getFileSizeAsB

      public String getFileSizeAsB()
    • getFileSizeAsKB

      public String getFileSizeAsKB()
    • getFileSizeAsMB

      public String getFileSizeAsMB()
    • getFileSizeAsGB

      public String 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 interface com.google.gson.JsonDeserializer<FileSize>
      Throws:
      com.google.gson.JsonParseException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object