Package com.addthis.bundle.core

Examples of com.addthis.bundle.core.BundleField


    }

    @Override
    public boolean hasField(String name) {
        State currentState = state.get();
        BundleField field = currentState.fieldMap.get(name);
        return field != null;
    }
View Full Code Here


     */
    @Override
    public BundleField getField(String name) {
        while (true) {
            State currentState = state.get();
            BundleField field = currentState.fieldMap.get(name);
            if (field != null) {
                return field;
            }
            int size = currentState.fieldArray.length;
            Map<String, BundleField> newMap = new HashMap<>(currentState.fieldMap);
View Full Code Here

                typever = in.read();
                switch (type = typeMap.get(typever)) {
                    case BUNDLE_FIELD_INDEX:
                        int fi = 0;
                        ValueObject vo = null;
                        BundleField field;
                        try {
                            fi = in.read();
                            vo = decodeValue(in, classMap);
                            field = fieldMap.getObject(fi);
                            bundle.setValue(field, vo);
View Full Code Here

            }

            @Override
            public BundleField next() {
                if (hasNext()) {
                    BundleField next = new IndexBundleField(index);
                    index += 1;
                    return next;
                }
                throw new NoSuchElementException();
            }
View Full Code Here

                typever = in.read();
                switch (type = typeMap.get(typever)) {
                    case BUNDLE_FIELD_INDEX:
                        int fi = 0;
                        ValueObject vo = null;
                        BundleField field;
                        try {
                            fi = in.read();
                            vo = decodeValue(in, classMap);
                            field = fieldMap.getObject(fi);
                            bundle.setValue(field, vo);
View Full Code Here

    }

    @Override
    public boolean hasField(String name) {
        State currentState = state.get();
        BundleField field = currentState.fieldMap.get(name);
        return field != null;
    }
View Full Code Here

     */
    @Override
    public BundleField getField(String name) {
        while (true) {
            State currentState = state.get();
            BundleField field = currentState.fieldMap.get(name);
            if (field != null) {
                return field;
            }
            int size = currentState.fieldArray.length;
            Map<String, BundleField> newMap = new HashMap<>(currentState.fieldMap);
View Full Code Here

            private BundleField peek = null;

            @Override
            public boolean hasNext() {
                while (peek == null && iter.hasNext()) {
                    BundleField next = iter.next();
                    ValueObject value = getRawValue(next);
                    if (value == SKIP) {
                        continue;
                    }
                    peek = next;
                    break;
                }
                return peek != null;
            }

            @Override
            public BundleField next() {
                if (hasNext()) {
                    BundleField next = peek;
                    peek = null;
                    return next;
                }
                throw new NoSuchElementException();
            }
View Full Code Here

        while (true) {
            State currentState = state.get();
            int size = currentState.fieldArray.length;

            String name = prefix + size;
            BundleField field = currentState.fieldMap.get(name);
            if (field != null) {
                continue;
            }
            Map<String, BundleField> newMap = new HashMap<>(currentState.fieldMap);
            BundleField[] newArray = Arrays.copyOf(currentState.fieldArray, size + 1);
View Full Code Here

    }

    @Override
    public boolean hasField(String name) {
        State currentState = state.get();
        BundleField field = currentState.fieldMap.get(name);
        return field != null;
    }
View Full Code Here

TOP

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

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.