String equals.
Uses String compareTo for the comparison (lexigraphical)
@param str String to compare with data
@param data the binary data to compare
@return True if data matches given string
777652
public static boolean streq(byte[] data, String str)
    {
        if (data == null) {
            return false;
        }
        return new String(data, ZMQ.CHARSET).compareTo(str) == 0;
    }
944948
public static boolean isValidJavaIdentifier(String str) {
    if (isNullOrEmpty(str)) {
      return false;
    }
    if (JAVA_KEYWORDS.contains(str)) {
      return false;
    }
    if (!Character.isJavaIdentifierStart(str.charAt(0))) {
      return false;
    }
    for (int i = 1; i < str.length(); i++) {
      if (!Character.isJavaIdentifierPart(str.charAt(i))) {
        return false;
      }
    }
    return true;
  }
435504
public int indexOf(String str) {
        int i;

        for (i = 0; i < size; i++) {
            if (data[i].equals(str)) {
                return i;
            }
        }
        return -1;
    }
1084201
public static boolean isEquals( String s1, String s2)
	{
		return s1 == null ? s2 == null : s1.equals(s2);
	}
343169
public boolean startsWith(final String str) {
        if (str == null) {
            return false;
        }
        final int len = str.length();
        if (len == 0) {
            return true;
        }
        if (len > size) {
            return false;
        }
        for (int i = 0; i < len; i++) {
            if (buffer[i] != str.charAt(i)) {
                return false;
            }
        }
        return true;
    }
719561
public static boolean isDigitsOnly(CharSequence str) {
        final int len = str.length();
        for (int i = 0; i < len; i++) {
            if (!Character.isDigit(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }
1160924
private boolean isMatchingString(String value1, String value2) {
        
        boolean valuesMatch = true;
        
        if (value1 == null) {
            if (value2 != null) {
                valuesMatch = false;
            }
        } else { 
            valuesMatch = value1.equals(value2);
        }
        
        return valuesMatch;
    }
757241
public boolean isCurrent(String str) {
	if (pos + str.length() > lcText.length) return false;
	for (int i = str.length() - 1; i >= 0; i--) {
	    if (str.charAt(i) != lcText[pos + i]) return false;
	}
	return true;
    }
1355863
public static boolean isDelimiter(String str)
    {
        if (str != null && ("-".equals(str) || "－".equals(str)))
            return true;
        else
            return false;
    }
730123
public static  boolean equalsTopElement(final LinkedList<String> stack, final String str) {
        
        if(stack.isEmpty()) {
            return false;
        }
        
        return stack.peekFirst().equals(str);
        
    }
842983
public static boolean equalsBottomElement(final LinkedList<String> stack, final String str) {
        
        if(stack.isEmpty()) {
            return false;
        }
        
        return stack.peekLast().equals(str);
        
    }
689280
private static boolean equals_(String scl) {
		// Valid for all
		if (scl.charAt(0) == 'T' && scl.charAt(1) == '*'
				&& scl.charAt(2) == 'F' && scl.charAt(3) == '*'
				&& scl.charAt(4) == '*' && scl.charAt(5) == 'F'
				&& scl.charAt(6) == 'F' && scl.charAt(7) == 'F'
				&& scl.charAt(8) == '*')
			return true;

		return false;
	}
844617
private static boolean isOptionCodeMatch(final Object option, final Object data) {
		// If the option is an instance of Option, check if the data value is the "CODE" value on the option
		if (option instanceof Option) {
			String optionCode = ((Option) option).getCode();
			String matchAsString = String.valueOf(data);
			boolean equal = Util.equals(optionCode, matchAsString);
			return equal;
		}
		return false;
	}
394044
public static boolean is_Tavarga(String str)
    {

        if (str.equals("w") || str.equals("W") || str.equals("q") || str.equals("Q") || str.equals("R")) return true;

        return false;
    }
329135
public static boolean hasOnlyNum(String str) {

        if (isEmpty(str))
            return false;

        Pattern pattern = Pattern.compile("[0-9]*");
        return pattern.matcher(str).matches();
    }
107728
public static boolean allEquals(final String value, final String... strings) {
        if (strings != null) {
            for (final String s : strings) {
                if (s == null && value != null || s != null && !s.equals(value)) {
                    return false;
                }
            }
        } else {
            return value == null;
        }
        return true;

    }
138381
public static boolean isLetter(String str, int beginIndex, int endIndex)
    {
        for ( int i = beginIndex; i < endIndex; i++ ) {
            char chr = str.charAt(i);
            if ( ! StringUtil.isEnLetter(chr) ) {
                return false;
            }
        }

        return true;
    }