Package com.thoughtworks.xstream.core.util

Examples of com.thoughtworks.xstream.core.util.ArrayIterator


                            }
                            final boolean isCollection = info.value instanceof Collection;
                            final boolean isMap = info.value instanceof Map;
                            final boolean isEntry = isMap && mapping.getKeyFieldName() == null;
                            final boolean isArray = info.value.getClass().isArray();
                            for (final Iterator<?> iter = isArray ? new ArrayIterator(info.value) : isCollection
                                ? ((Collection<?>)info.value).iterator()
                                : isEntry ? ((Map<?, ?>)info.value).entrySet().iterator() : ((Map<?, ?>)info.value)
                                    .values()
                                    .iterator(); iter.hasNext();) {
                                final Object obj = iter.next();
View Full Code Here


                            final boolean isCollection = info.value instanceof Collection;
                            final boolean isMap = info.value instanceof Map;
                            final boolean isEntry = isMap && mapping.getKeyFieldName() == null;
                            final boolean isArray = info.value.getClass().isArray();
                            for (Iterator iter = isArray
                                    ? new ArrayIterator(info.value
                                    : isCollection
                                        ? ((Collection)info.value).iterator()
                                        : isEntry
                                            ? ((Map)info.value).entrySet().iterator()
                                            : ((Map)info.value).values().iterator(); iter.hasNext();) {
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.core.util.ArrayIterator

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.