code: public static long sizeToLong(String size) {
          size = size.trim();
          if (Checker.isNotEmpty(size)) {
              String num;
              if (size.contains(ValueConsts.SPACE)) {
                  num = size.split(ValueConsts.SPACE)[0];
              } else {
                  num = Utils.extractDigit(size);
              }
              double result;
              if (size.contains(SIZE_TB)) {
                  result = stringToDouble(num) * ValueConsts.TB;
              } else if (size.contains(SIZE_GB)) {
                  result = stringToDouble(num) * ValueConsts.GB;
              } else if (size.contains(SIZE_MB)) {
                  result = stringToDouble(num) * ValueConsts.MB;
              } else if (size.contains(SIZE_KB)) {
                  result = stringToDouble(num) * ValueConsts.KB;
              } else {
                  result = stringToDouble(num);
              }
              return (long) result;
          }
          return -1;
      }
docs: 将格式化后的大小转换成long型
  
  @param size 格式为 xx.xx B、xx.xx KB、xx.xx MB、xx.xx GB、xx.xx TB 的字符串
  
  @return 单位为B的{@link Long}