return getKeysAsString(keys);
}
public static String getKeysAsString (Object[] keys)
{
FastStringBuffer fsb = new FastStringBuffer();
fsb.append("[");
for (int i = 0; i < keys.length; i++) {
if (i > 0) {
fsb.append(", ");
}
Object key = keys[i];
if (key instanceof String && key.equals(NullKey)) {
fsb.append("");
}
else if (key instanceof String) {
if (((String)key).length() < 20) {
fsb.append(key);
}
else {
fsb.append(Fmt.S("%s...@%s",
((String)key).substring(0, 20),
Integer.toString(System.identityHashCode(key))));
}
}
else {
fsb.append(Fmt.S("%s@%s", key.getClass().getName(),
Integer.toString(System.identityHashCode(key))));
}
}
fsb.append("]");
return fsb.toString();
}