boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ByteArraySequence sequence = (ByteArraySequence)o; int len = myLen; if (len != sequence.myLen) return false; final byte[] thisBytes = myBytes; final byte[] thatBytes = sequence.myBytes; for (int i = 0, j = myOffset, k = sequence.myOffset; i < len; i++, j++, k++) { if (thisBytes[j] != thatBytes[k]) { return false; } } return true; }