private static CacheTypeMetadata metaForClass(Class cls){
  CacheTypeMetadata meta=new CacheTypeMetadata();
  meta.setKeyType(Integer.class);
  meta.setValueType(cls);
  meta.setAscendingFields(Collections.<String,Class<?>>singletonMap("val",Integer.class));
  return meta;
}

private static CacheTypeMetadata metaForClass ( Class cls ) { CacheTypeMetadata meta = new CacheTypeMetadata ( ) ; meta . setKeyType ( Integer . class ) ; meta . setValueType ( cls ) ; meta . setAscendingFields ( Collections . < String , Class < ? > > singletonMap ( "val" , Integer . class ) ) ; return meta ; }
create type metadata for class .
