Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   try {
     return obj instanceof BytesStore && BytesInternal.contentEqual(this, (BytesStore) obj);
   } catch (IORuntimeException e) {
     throw new AssertionError(e);
   }
 }
Ejemplo n.º 2
0
 @NotNull
 @Override
 public String toString() {
   try {
     return BytesInternal.toString(this);
   } catch (IllegalStateException | IORuntimeException e) {
     return e.toString();
   }
 }