@Override public boolean equals(Object o) { if (o instanceof AbstractUtf8Array) { AbstractUtf8Array other = (AbstractUtf8Array)o; return compareTo(other) == 0; } else if (o instanceof String) { return toString().equals(o); } return false; }
public GenericWriter write(AbstractUtf8Array v) throws java.io.IOException { write(v.toString()); return this; } }
/** * This will create a string based on the utf8 sequence. * @param utf8 The backing array */ public Utf8String(AbstractUtf8Array utf8) { super(utf8.getBytes(), utf8.getByteOffset(), utf8.getByteLength()); s = utf8.toString(); }