class FieldCacheSanityChecker.ReaderField {
public String toString() {
return readerKey.toString() + "+" + fieldName;
}
}
class FieldCacheSanityChecker.Insanity {
/**
* Multi-Line representation of this Insanity object, starting with
* the Type and Msg, followed by each CacheEntry.toString() on it's
* own line prefaced by a tab character
*/
public String toString() {
StringBuffer buf = new StringBuffer();
buf.append(getType()).append(": ");
String m = getMsg();
if (null != m) buf.append(m);
buf.append('\n');
CacheEntry[] ce = getCacheEntries();
for (int i = 0; i < ce.length; i++) {
buf.append('\t').append(ce[i].toString()).append('\n');
}
return buf.toString();
}
}
class FieldCacheSanityChecker.InsanityType {
public String toString() { return label; }
}
|