Examples of ArrayIterator


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

Examples of diva.util.ArrayIterator

    }

    /** Get an iterator over the target figures.
     */
    public Iterator targets() {
        return new ArrayIterator(_targetArray);
    }
View Full Code Here

Examples of etch.util.ArrayIterator

    return dim;
  }

  public Iterator<Object> iterator()
  {
    return new ArrayIterator( array );
  }
View Full Code Here

Examples of ext.jtester.hamcrest.internal.ArrayIterator

        } else if (value instanceof Float) {
            append('<');
            append(valueOf(value));
            append("F>");
        } else if (value.getClass().isArray()) {
            appendValueList("[",", ","]", new ArrayIterator(value));
        } else {
            append('<');
            append(valueOf(value));
            append('>');
        }
View Full Code Here

Examples of io.crate.core.collections.ArrayIterator

    public Iterator<Object[]> iterator() throws IllegalStateException {
        if (!result.isDone()) {
            throw new IllegalStateException("result not ready.");
        }
        try {
            return new ArrayIterator(result.get(), 0, result.get().length);
        } catch (InterruptedException | ExecutionException e) {
            throw new IllegalStateException(e);
        }
    }
View Full Code Here

Examples of net.sf.saxon.om.ArrayIterator

        } else {
            StringValue[] groups = new StringValue[c];
            for (int i=1; i<=groups.length; i++) {
                groups[i-1] = StringValue.makeStringValue(matcher.group(i));
            }
            return new ArrayIterator(groups);
        }
    }
View Full Code Here

Examples of nexj.core.util.ArrayIterator

         return ((Iteratable)value).iterator();
      }

      if (value.getClass().isArray())
      {
         return new ArrayIterator(value);
      }

      if (value instanceof Pair)
      {
         return Pair.getIterator((Pair)value);
View Full Code Here

Examples of org.apache.beehive.netui.util.iterator.ArrayIterator

                if (_match != null)
                    _repeaterIterator = Arrays.asList(_match).iterator();
                break;
            case RepeatingStages.INT_NULL:
                if (_nullable)
                    _repeaterIterator = new ArrayIterator(NULL_INSTANCE);
                break;
        }

        // return true when we set the iterator, otherwise move to the next stage.
        return (_repeaterIterator != null) ? true : moveNext();
View Full Code Here

Examples of org.apache.commons.collections.ArrayIterator

        else if ( value instanceof Map ) {
            Map map = (Map) value;
            return map.entrySet().iterator();
        }
        else if ( value.getClass().isArray() ) {
            return new ArrayIterator( value );
        }
        else if ( value instanceof Enumeration ) {
            return new EnumerationIterator((Enumeration ) value);
        }
        else if ( value instanceof Collection ) {
View Full Code Here

Examples of org.apache.commons.collections.iterators.ArrayIterator

                sb.append("empty");
            }
            else
            {
                sb.append('[');
                for (Iterator it = new ArrayIterator(params); it.hasNext(); )
                {
                    sb.append(it.next());
                    if (it.hasNext())
                    {
                        sb.append(", ");
                    }
                }
                sb.append(']');
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.