/** * Compatible with {@link String#hashCode()} */ @Override public int hashCode() { int h = this.hash; if (h == 0) { char chars[]; chars = getChars(); final int len = chars.length; for (int i = 0; i < len; i++) { h = 31 * h + chars[i]; } this.hash = h; } return h; }
/** * Compatible with {@link String#hashCode()} */ @Override public int hashCode() { int h = this.hash; if (h == 0) { char chars[]; chars = getChars(); final int len = chars.length; for (int i = 0; i < len; i++) { h = 31 * h + chars[i]; } this.hash = h; } return h; }
@Override public String getString() throws IndexException { return new String(getChars()); }
@Override public String getString() throws IndexException { return new String(getChars()); }
@Override public int compare(String other, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), other.toCharArray(), caseSensitive); }
@Override public int comparePrefix(char[] other, boolean caseSensitive) throws IndexException { return ShortString.comparePrefix(getChars(), other, caseSensitive); }
@Override public int compare(char[] other, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), other, caseSensitive); }
@Override public int comparePrefix(char[] other, boolean caseSensitive) throws IndexException { return ShortString.comparePrefix(getChars(), other, caseSensitive); }
@Override public int compare(String other, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), other.toCharArray(), caseSensitive); }
@Override public int compareCompatibleWithIgnoreCase(char[] other) throws IndexException { return ShortString.compareCompatibleWithIgnoreCase(getChars(), other); }
@Override public int compare(char[] other, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), other, caseSensitive); }
@Override public int compareCompatibleWithIgnoreCase(char[] other) throws IndexException { return ShortString.compareCompatibleWithIgnoreCase(getChars(), other); }
@Override public int compareCompatibleWithIgnoreCase(IString string) throws IndexException { return ShortString.compareCompatibleWithIgnoreCase(getChars(), string.getChars()); }
@Override public int compareCompatibleWithIgnoreCase(IString string) throws IndexException { return ShortString.compareCompatibleWithIgnoreCase(getChars(), string.getChars()); }
@Override public int compare(IString string, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), string.getChars(), caseSensitive); }
@Override public int compare(IString string, boolean caseSensitive) throws IndexException { return ShortString.compare(getChars(), string.getChars(), caseSensitive); }