@@ -0,0 +1,886 @@
+package kr.jm.utils;%0A%0Aimport java.nio.file.Path;%0Aimport java.text.DecimalFormat;%0A%0Aimport kr.jm.utils.enums.SimpleSIUnit;%0Aimport kr.jm.utils.helper.JMPath;%0A%0Apublic class FileSize implements Comparable%3CFileSize%3E %7B%0A%0A%09private static final String NoSize = %22--%22;%0A%09private static final DecimalFormat DecimalFormat = new DecimalFormat(%22#.#%22);%0A%09private static final String SUFFIX = %22B%22;%0A%09private long size;%0A%0A%09private String siSize;%0A%0A%09public FileSize(long size) %7B%0A%09%09this.size = size;%0A%09%09this.siSize = size %3C= 0 ? NoSize%0A%09%09%09%09: SimpleSIUnit.findSIUnitAndConvertToString(size, DecimalFormat,%0A%09%09%09%09%09%09SUFFIX);%0A%09%7D%0A%0A%09public FileSize(Path path) %7B%0A%09%09this(JMPath.getSize(path));%0A%09%7D%0A%0A%09public long getSize() %7B%0A%09%09return size;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return siSize;%0A%09%7D%0A%0A%09@Override%0A%09public int compareTo(FileSize targetFileSize) %7B%0A%09%09return Long.compare(size, targetFileSize.getSize());%0A%09%7D%0A%0A%7D%0A

add FileSize class