/** * Return true if the ring starts with the specified string (ignoring case) * * @param str String to check for * @param startIdx index to begin searching at * @return true if the ring starts with the specified string (ignoring case) */ public boolean startsWithIgnoreCase(String str, int startIdx) { if (str.length() + startIdx > size()) { return false; } for (int ix = 0; ix < str.length(); ix++) { if (!StringUtil.equalsIgnoreCase(get(ix + startIdx), str.charAt(ix))) { return false; } } return true; }