Package com.addthis.bundle.core

Examples of com.addthis.bundle.core.BundleFormat


            return null;
        }
    }

    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;
View Full Code Here

TOP

Related Classes of com.addthis.bundle.core.BundleFormat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.