@Override public List<Long> decode(byte[] b) { // This concrete implementation is provided for binary compatibility with 1.6; it can be // removed in 2.0. See ACCUMULO-3789. return super.decode(b); }
@Override public T decode(byte[] b) { requireNonNull(b, "cannot decode null byte array"); return decodeUnchecked(b, 0, b.length); }
/** * Checks if the byte array is null, or if parameters exceed the bounds of the byte array, then * calls {@link #decodeUnchecked(byte[], int, int)}. * * @throws java.lang.NullPointerException * if {@code b} is null * @throws java.lang.IllegalArgumentException * if {@code offset + len} exceeds the length of {@code b} */ public T decode(byte[] b, int offset, int len) { requireNonNull(b, "cannot decode null byte array"); checkArgument(offset >= 0, "offset %s cannot be negative", offset); checkArgument(len >= 0, "length %s cannot be negative", len); checkArgument(offset + len <= b.length, "offset + length %s exceeds byte array length %s", (offset + len), b.length); return decodeUnchecked(b, offset, len); } }
@Override public List<Long> decode(byte[] b) { // This concrete implementation is provided for binary compatibility with 1.6; it can be // removed in 2.0. See ACCUMULO-3789. return super.decode(b); }
@Override public T decode(byte[] b) { requireNonNull(b, "cannot decode null byte array"); return decodeUnchecked(b, 0, b.length); }
/** * Checks if the byte array is null, or if parameters exceed the bounds of the byte array, then * calls {@link #decodeUnchecked(byte[], int, int)}. * * @throws java.lang.NullPointerException * if {@code b} is null * @throws java.lang.IllegalArgumentException * if {@code offset + len} exceeds the length of {@code b} */ public T decode(byte[] b, int offset, int len) { requireNonNull(b, "cannot decode null byte array"); checkArgument(offset >= 0, "offset %s cannot be negative", offset); checkArgument(len >= 0, "length %s cannot be negative", len); checkArgument(offset + len <= b.length, "offset + length %s exceeds byte array length %s", (offset + len), b.length); return decodeUnchecked(b, offset, len); } }