Examples of ArrayIterator


Examples of org.apache.velocity.util.ArrayIterator

        if (wrapped != null)
        {
            /* rip-off from org/apache/velocity/runtime/directive/ForEach.java */
            if (wrapped.getClass().isArray())
            {
                this.iterator = new ArrayIterator((Object[])wrapped);
            }
            else if (wrapped instanceof Collection)
            {
                this.iterator = ((Collection)wrapped).iterator();
            }
View Full Code Here

Examples of org.apache.velocity.util.ArrayIterator

    public Iterator getIterator(Object obj, Info i)
            throws Exception
    {
        if (obj.getClass().isArray())
        {
            return new ArrayIterator(obj);
        }
        else if (obj instanceof Collection)
        {
            return ((Collection) obj).iterator();
        }
View Full Code Here

Examples of org.drools.core.util.ArrayIterator

        } else if ( result instanceof Collection ) {
            return ((Collection) result).iterator();
        } else if ( result instanceof Iterator ) {
            return (Iterator) result;
        } else if ( result.getClass().isArray() ) {
            return new ArrayIterator( result );
        } else {
            return Collections.singletonList( result ).iterator();
        }
    }
View Full Code Here

Examples of org.drools.util.ArrayIterator

        } else if ( result instanceof Collection ) {
            return ((Collection) result).iterator();
        } else if ( result instanceof Iterator ) {
            return (Iterator) result;
        } else if ( result.getClass().isArray() ) {
            return new ArrayIterator( result );
        } else {
            return Collections.singletonList( result ).iterator();
        }
    }
View Full Code Here

Examples of org.hamcrest.internal.ArrayIterator

    private void log(String methodName, Object... arguments) {
      log.append(methodName).append("(");

      if (arguments != null) {
        ArrayIterator iterator = new ArrayIterator(arguments);

        while (iterator.hasNext()) {
          log.append(iterator.next());

          if (iterator.hasNext()) {
            log.append(", ");
          }
        }
      }
View Full Code Here

Examples of org.jgroups.util.ArrayIterator

        return new Address[][]{joined != null? joined : new Address[]{}, left != null? left : new Address[]{}};
    }

    public Iterator<Address> iterator() {
        return new ArrayIterator(this.members);
    }
View Full Code Here

Examples of org.modelmapper.internal.util.ArrayIterator

  /**
   * Gets an Iterator for the Iterable or psuedo-Iterable (array) {@code source}.
   */
  @SuppressWarnings("unchecked")
  protected Iterator<Object> getSourceIterator(S source) {
    return source.getClass().isArray() ? new ArrayIterator(source)
        : ((Iterable<Object>) source).iterator();
  }
View Full Code Here

Examples of org.mvel2.templates.util.ArrayIterator

    for (int i = 0; i < iters.length; i++) {
      if ((o = MVEL.executeExpression(ce[i], ctx, factory)) instanceof Iterable) {
        iters[i] = ((Iterable) o).iterator();
      }
      else if (o instanceof Object[]) {
        iters[i] = new ArrayIterator((Object[]) o);
      }
      else if (o instanceof Integer) {
        iters[i] = new CountIterator((Integer) o);
      }
      else {
View Full Code Here

Examples of org.pdf4j.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 railo.runtime.util.ArrayIterator

    return new EntryIterator(this, keys());
  }

  @Override
  public Iterator<Object> valueIterator() {
    return new ArrayIterator(data,0,size);
  }
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.