Class OccupySize

java.lang.Object
com.acanx.utils.incubator.file.OccupySize

public class OccupySize extends Object
OccupySize
Since:
0.0.1.10
  • Constructor Details

    • OccupySize

      public OccupySize(long bytes)
      构造方法
      Parameters:
      bytes - bytes
  • Method Details

    • ofB

      public static OccupySize ofB(long bytes)
      OccupySize
      Parameters:
      bytes - bytes
      Returns:
      OccupySize
    • ofKB

      public static OccupySize ofKB(long kbytes)
      OccupySize
      Parameters:
      kbytes - kbytes
      Returns:
      OccupySize
    • ofMB

      public static OccupySize ofMB(long kbytes)
      OccupySize
      Parameters:
      kbytes - kbytes
      Returns:
      OccupySize
    • ofGB

      public static OccupySize ofGB(long kbytes)
      OccupySize
      Parameters:
      kbytes - kbytes
      Returns:
      OccupySize
    • ofTB

      public static OccupySize ofTB(long kbytes)
      OccupySize
      Parameters:
      kbytes - kbytes
      Returns:
      OccupySize
    • toBytes

      public long toBytes()
      OccupySize
      Returns:
      OccupySize
    • of

      public static OccupySize of(long size, OccupyUnit unit)
      OccupySize
      Parameters:
      size - size
      unit - unit
      Returns:
      OccupySize
    • resolve

      public static OccupySize resolve(CharSequence input)
      resolve
      Parameters:
      input - input
      Returns:
      OccupySize