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