示例#1
0
 public ByteCount minus(ByteCount b) {
   return new ByteCount(this.getTotalBytes() - b.getTotalBytes());
 }
示例#2
0
 public ByteCount add(ByteCount b) {
   return new ByteCount(this.getTotalBytes() + b.getTotalBytes());
 }
示例#3
0
 public static ByteCount min(ByteCount a, ByteCount b) {
   if (a.getTotalBytes() <= b.getTotalBytes()) return a;
   return b;
 }