本文整理汇总了Java中com.addthis.bundle.core.BundleFormat类的典型用法代码示例。如果您正苦于以下问题:Java BundleFormat类的具体用法?Java BundleFormat怎么用?Java BundleFormat使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BundleFormat类属于com.addthis.bundle.core包,在下文中一共展示了BundleFormat类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkBinding
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
private final void checkBinding(BundleFormatted bundle) {
BundleFormat format = bundle.getFormat();
Object version = format.getVersion();
if (version != lastVersion) {
ArrayList<BundleField> allFields = new ArrayList<BundleField>(format.getFieldCount());
for (BundleField field : format) {
allFields.add(field);
}
ArrayList<BundleField> newFields = allFields;
if (fieldNames != null) {
newFields = new ArrayList<BundleField>(fieldNames.length);
for (String fieldName : fieldNames) {
Integer pos = getPos(fieldName);
if (pos != null && pos < allFields.size()) {
newFields.add(allFields.get(pos.intValue()));
} else {
newFields.add(format.getField(fieldName));
}
}
}
fields = newFields.toArray(new BundleField[newFields.size()]);
lastVersion = version;
}
}
示例2: makeListBundleWithOrder
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
private static Bundle makeListBundleWithOrder() throws Exception {
BundleFormat bundleFormat = new ListBundleFormat();
bundleFormat.getField("a");
bundleFormat.getField("b");
bundleFormat.getField("c");
bundleFormat.getField("0");
Bundle bundle = bundleFormat.createBundle();
Bundles.shallowCopyBundle(Bundles.decode("a = hi, b = there, c = {}, 0 = 44"), bundle);
return bundle;
}
示例3: DataTableListWrapper
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
public DataTableListWrapper(List<Bundle> list, BundleFactory factory, BundleFormat format) {
this.factory = factory;
this.format = format;
this.list = list;
}
示例4: getFormat
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
@Override
public BundleFormat getFormat() {
return format;
}
示例5: getFormat
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
@Override
public BundleFormat getFormat() {
return this;
}
示例6: getFormat
import com.addthis.bundle.core.BundleFormat; //导入依赖的package包/类
@Override public BundleFormat getFormat();