194195196197198199200201
assertEquals(69, m.get(g)); } private String printDetails(Cache c) { DataContainer dc = ((CacheInvocationDelegate) c).getDataContainer(); return ((DataContainerImpl) dc).printDetails(); }
4546474849505152
* @return a String representation of the cache */ public static String printCacheDetails(Cache c) { // internal cast DataContainer ci = ((CacheInvocationDelegate) c).getDataContainer(); return ci.printDetails(); }
4344454647484950
195196197198199200201202
System.out.println(printDetails(cache)); } private String printDetails(Cache c) { DataContainer dc = ((CacheInvocationDelegate) c).getDataContainer(); return ((DataContainerImpl) dc).printDetails(); }
5051525354555657585960
int i=1; for (Cache cache: c) { // internal cast sb.append("\n--- Cache").append(i++).append(" ---\n"); DataContainer ci = ((CacheInvocationDelegate) cache).getDataContainer(); sb.append(ci.printDetails()); sb.append("\n------------\n\n"); } return sb.toString(); }