Class Size

java.lang.Object
com.github.joschi.jadconfig.util.Size
All Implemented Interfaces:
Comparable<Size>

public class Size extends Object implements Comparable<Size>
  • Method Details

    • bytes

      public static Size bytes(long count)
    • kilobytes

      public static Size kilobytes(long count)
    • megabytes

      public static Size megabytes(long count)
    • gigabytes

      public static Size gigabytes(long count)
    • terabytes

      public static Size terabytes(long count)
    • petabytes

      public static Size petabytes(long count)
    • parse

      public static Size parse(String size)
    • getQuantity

      public long getQuantity()
    • getUnit

      public SizeUnit getUnit()
    • toBytes

      public long toBytes()
    • toKilobytes

      public long toKilobytes()
    • toMegabytes

      public long toMegabytes()
    • toGigabytes

      public long toGigabytes()
    • toTerabytes

      public long toTerabytes()
    • toPetabytes

      public long toPetabytes()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Size other)
      Specified by:
      compareTo in interface Comparable<Size>