类 ByteUnitConvert

java.lang.Object
com.yuzhyn.azylee.core.datas.units.ByteUnitConvert

public class ByteUnitConvert extends Object
  • 构造器详细资料

    • ByteUnitConvert

      public ByteUnitConvert()
  • 方法详细资料

    • fmt

      public static String fmt(long size, int digits)
      自动格式化字节单位
      参数:
      size - 参数
      digits - 参数
      返回:
      返回 返回
    • fmt

      public static String fmt(double size, int digits)
      自动格式化字节单位
      参数:
      size - 参数
      digits - 参数
      返回:
      返回 返回
    • cvt

      public static double cvt(long size, String unit)
      根据单位换算
      参数:
      size - 参数
      unit - 参数
      返回:
      返回 返回
    • cvt

      public static double cvt(double size, String unit)
      根据单位换算
      参数:
      size - 参数
      unit - 参数
      返回:
      返回 返回