@Test public void shouldCheckSubsectionOfCharArraysWithOffset() { assertTrue(CodecUtil.equals("zyxabc".toCharArray(), "abc ".toCharArray(), 3, 0, 3)); }
public static boolean equals( final char[] value, final char[] expected, final int offset, final int expectedOffset, final int length) { if (value.length < length || expected.length < length) { return false; } for (int i = 0; i < length; i++) { if (value[i + offset] != expected[i + expectedOffset]) { return false; } } return true; }
CodecUtil { public static boolean equals( final char[] value, final char[] expected, final int offset, final int expectedOffset, final int length) { if (value.length < length || expected.length < length) { return false; } for (int i = 0; i < length; i++) { if (value[i + offset] != expected[i + expectedOffset]) { return false; } } return true; } }
CodecUtil { public static boolean equals( final char[] value, final char[] expected, final int offset, final int expectedOffset, final int length) { if (value.length < length || expected.length < length) { return false; } for (int i = 0; i < length; i++) { if (value[i + offset] != expected[i + expectedOffset]) { return false; } } return true; } private  CodecUtil(); }
CodecUtil { public static boolean equals( final char[] value, final char[] expected, final int offset, final int expectedOffset, final int length) { if (value.length < length || expected.length < length) { return false; } for (int i = 0; i < length; i++) { if (value[i + offset] != expected[i + expectedOffset]) { return false; } } return true; } private  CodecUtil(); @Deprecated // Will be removed in a future version static byte[] toBytes(final CharSequence value, final byte[] oldBuffer); @Deprecated // Will be removed in a future version static byte[] toBytes(final char[] value, final byte[] oldBuffer, final int length); @Deprecated // Will be removed in a future version static byte[] toBytes(final char[] value, final byte[] oldBuffer, final int offset, final int length); static byte[] toBytes(final char[] value, final int length); static char[] fromBytes(final byte[] value); static void toBytes(final CharSequence value, final MutableDirectBuffer buffer); static void toBytes(final char[] value, final MutableDirectBuffer oldBuffer, final int length); static void toBytes(
        final char[] value, final MutableDirectBuffer buffer, final int offset, final int length); static boolean equals(
        final char[] value,
        final char[] expected,
        final int offset,
        final int expectedOffset,
        final int length); static boolean equals(final char[] value, final char[] expected, final int length); static boolean equals(final char[] value, final String expected, final int length); static int hashCode(final char[] value, final int offset, final int length); static void indent(final StringBuilder builder, final int level); static void appendData(final StringBuilder builder, final byte[] dataField, final int length); static void appendBuffer(
        final StringBuilder builder, final MutableDirectBuffer buffer, final int offset, final int length); static void appendFloat(final StringBuilder builder, final DecimalFloat price); }
CodecUtil { public static boolean equals( final char[] value, final char[] expected, final int offset, final int expectedOffset, final int length) { if (value.length < length || expected.length < length) { return false; } for (int i = 0; i < length; i++) { if (value[i + offset] != expected[i + expectedOffset]) { return false; } } return true; } private  CodecUtil(); @Deprecated // Will be removed in a future version static byte[] toBytes(final CharSequence value, final byte[] oldBuffer); @Deprecated // Will be removed in a future version static byte[] toBytes(final char[] value, final byte[] oldBuffer, final int length); @Deprecated // Will be removed in a future version static byte[] toBytes(final char[] value, final byte[] oldBuffer, final int offset, final int length); static byte[] toBytes(final char[] value, final int length); static char[] fromBytes(final byte[] value); static void toBytes(final CharSequence value, final MutableDirectBuffer buffer); static void toBytes(final char[] value, final MutableDirectBuffer oldBuffer, final int length); static void toBytes(
        final char[] value, final MutableDirectBuffer buffer, final int offset, final int length); static boolean equals(
        final char[] value,
        final char[] expected,
        final int offset,
        final int expectedOffset,
        final int length); static boolean equals(final char[] value, final char[] expected, final int length); static boolean equals(final char[] value, final String expected, final int length); static int hashCode(final char[] value, final int offset, final int length); static void indent(final StringBuilder builder, final int level); static void appendData(final StringBuilder builder, final byte[] dataField, final int length); static void appendBuffer(
        final StringBuilder builder, final MutableDirectBuffer buffer, final int offset, final int length); static void appendFloat(final StringBuilder builder, final DecimalFloat price); static final byte[] BODY_LENGTH; static final int MISSING_INT; static final char MISSING_CHAR; static final long MISSING_LONG; static final char ENUM_MISSING_CHAR; static final int ENUM_MISSING_INT; static final String ENUM_MISSING_STRING; static final char ENUM_UNKNOWN_CHAR; static final int ENUM_UNKNOWN_INT; static final String ENUM_UNKNOWN_STRING; }