private void fillRow(CompositeData cache, Object[] row) {
for (com.maxifier.mxcache.jconsoleplugin.Attribute attr : com.maxifier.mxcache.jconsoleplugin.Attribute.values()) {
try {
Object v = cache.get(attr.getKey());
Object s = v == null ? "" : attr.transform(v);
// todo add posibility to switch shortcutting off
row[attr.ordinal()] = attr.isShortcutable() ? com.maxifier.mxcache.jconsoleplugin.Attribute.shortcutClassNames(s) : s;
} catch (InvalidKeyException e) {
// some attributes were added lately, so they may be missing
row[attr.ordinal()] = "";
}
}
}
MxCacheJConsolePlugin.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:mxcache
作者:
评论列表
文章目录