예제 #1
0
 public long getTb() {
   return unit.toTB(size);
 }
예제 #2
0
 public long getPb() {
   return unit.toPB(size);
 }
예제 #3
0
 public long getGb() {
   return unit.toGB(size);
 }
예제 #4
0
 public long getMb() {
   return unit.toMB(size);
 }
예제 #5
0
 public long getKb() {
   return unit.toKB(size);
 }
예제 #6
0
 public long getBytes() {
   return unit.toBytes(size);
 }
예제 #7
0
 @Override
 public int hashCode() {
   int result = Long.hashCode(size);
   result = 31 * result + (unit != null ? unit.hashCode() : 0);
   return result;
 }