/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }
/** * 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(String s) { if( s == null ) return false; if( ! caseSensitive ) return equalsIgnoreCase( s ); switch (type) { case T_STR: return strValue != null && strValue.equals(s); case T_CHARS: return charC.equals( s ); case T_BYTES: return byteC.equals( s ); default: return false; } }