cdm/src/main/java/ucar/nc2/util/cache/FileCacheARC.java
@Override
  public void showCache(Formatter format) {
    ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size());
    for (CacheElement elem : cache.values()) {
      allFiles.addAll(elem.list);
    }
    Collections.sort(allFiles); // sort so oldest are on top

    format.format("%nFileCacheARC %s (min=%d softLimit=%d hardLimit=%d scour=%d):%n", name, minElements, softLimit, hardLimit, period);
    format.format("isLocked  accesses lastAccess                   location %n");
    for (CacheElement.CacheFile file : allFiles) {
      String loc = file.ncfile != null ? file.ncfile.getLocation() : "null";
      CalendarDate cd = CalendarDate.of(file.getLastAccessed());
      format.format("%8s %9d %s %s %n", file.isLocked, file.getCountAccessed(), CalendarDateFormatter.toTimeUnits(cd), loc);
    }
    showStats(format);
  }
@Override
  public void showCache(Formatter format) {
    ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size());
    for (CacheElement elem : cache.values()) {
      allFiles.addAll(elem.list);
    }
    Collections.sort(allFiles); // sort so oldest are on top

    format.format("%nFileCacheARC %s (min=%d softLimit=%d hardLimit=%d scour=%d):%n", name, minElements, softLimit, hardLimit, period);
    format.format("isLocked  accesses lastAccess                   location %n");
    for (CacheElement.CacheFile file : allFiles) {
      String loc = file.ncfile != null ? file.ncfile.getLocation() : "null";
      CalendarDate cd = CalendarDate.of(file.getLastAccessed());
      format.format("%8s %9d %s %s %n", file.isLocked, file.getCountAccessed(), CalendarDateFormatter.toTimeUnits(cd), loc);
    }
    showStats(format);
  }
@ Override public void showCache ( Formatter format ) { ArrayList < CacheElement . CacheFile > allFiles = new ArrayList <> ( files . size ( ) ) ; for ( CacheElement elem : cache . values ( ) ) { allFiles . addAll ( elem . list ) ; } Collections . sort ( allFiles ) ; // sort so oldest are on top format . format ( "%nFileCacheARC %s (min=%d softLimit=%d hardLimit=%d scour=%d):%n" , name , minElements , softLimit , hardLimit , period ) ; format . format ( "isLocked  accesses lastAccess                   location %n" ) ; for ( CacheElement . CacheFile file : allFiles ) { String loc = file . ncfile != null ? file . ncfile . getLocation ( ) : "null" ; CalendarDate cd = CalendarDate . of ( file . getLastAccessed ( ) ) ; format . format ( "%8s %9d %s %s %n" , file . isLocked , file . getCountAccessed ( ) , CalendarDateFormatter . toTimeUnits ( cd ) , loc ) ; } showStats ( format ) ; }
Show individual cache entries, add to formatter.

@param format add to this
Show individual cache entries add to formatter .