private void compileDefaults(Map<String,TreeMap<String,Object>> compiledDefaults,UIDefaults d){
  for (  Map.Entry<Object,Object> entry : d.entrySet()) {
    if (entry.getKey() instanceof String) {
      String key=(String)entry.getKey();
      String kp=parsePrefix(key);
      if (kp == null)       continue;
      TreeMap<String,Object> map=compiledDefaults.get(kp);
      if (map == null) {
        map=new TreeMap<String,Object>();
        compiledDefaults.put(kp,map);
      }
      map.put(key,entry.getValue());
    }
  }
}

private void compileDefaults ( Map < String , TreeMap < String , Object > > compiledDefaults , UIDefaults d ) { for ( Map . Entry < Object , Object > entry : d . entrySet ( ) ) { if ( entry . getKey ( ) instanceof String ) { String key = ( String ) entry . getKey ( ) ; String kp = parsePrefix ( key ) ; if ( kp == null ) continue ; TreeMap < String , Object > map = compiledDefaults . get ( kp ) ; if ( map == null ) { map = new TreeMap < String , Object > ( ) ; compiledDefaults . put ( kp , map ) ; } map . put ( key , entry . getValue ( ) ) ; } } }
iterates over all the keys in the specified uidefaults and compiles those keys into the comileddefaults data structure . it relies on parsing the " prefix " out of the key . if the key is not a string or is null then it is ignored . in all other cases a prefix is parsed out ( even if that prefix is the empty string or is a " fake " prefix . that is , suppose you had a key foo ~ ~ myspecial . keything ~ ~ . in this case this is not a seaglass formatted key , but we don ' t care , we treat it as if it is . this doesn ' t pose any harm , it will simply never be used ) .
