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