/** * Compares the message bytes to the specified byte array. * @param bytes the <code>byte[]</code> to compare * * @return true if the comparison succeeded, false otherwise * * @since 2.3 */ public final boolean equals(final byte[] bytes) { return equals(buff, start, end - start, bytes, 0, bytes.length); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified byte array. * @param bytes the <code>byte[]</code> to compare * * @return true if the comparison succeeded, false otherwise * * @since 2.3 */ public final boolean equals(final byte[] bytes) { return equals(buff, start, end - start, bytes, 0, bytes.length); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified byte array. * @param bytes the <code>byte[]</code> to compare * * @return true if the comparison succeeded, false otherwise * * @since 2.3 */ public final boolean equals(final byte[] bytes) { return equals(buff, start, end - start, bytes, 0, bytes.length); }
/** * Compares the message bytes to the specified byte array. * @param bytes the <code>byte[]</code> to compare * * @return true if the comparison succeeded, false otherwise * * @since 2.3 */ public final boolean equals(final byte[] bytes) { return equals(buff, start, end - start, bytes, 0, bytes.length); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified byte array. * @param bytes the <code>byte[]</code> to compare * * @return true if the comparison succeeded, false otherwise * * @since 2.3 */ public final boolean equals(final byte[] bytes) { return equals(buff, start, end - start, bytes, 0, bytes.length); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
/** * Compares the message bytes to the specified String object. * @param s the String to compare * @return true if the comparison succeeded, false otherwise */ public boolean equals(final String s) { return equals(buff, start, end - start, s); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }
private static boolean equals(final Protocol protocol, final byte[] protocolBytes, final int offset, final int len) { final byte[] knownProtocolBytes = protocol.getProtocolBytes(); return ByteChunk.equals(knownProtocolBytes, 0, knownProtocolBytes.length, protocolBytes, offset, len); }