Examples of ArrayIterator


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

      else if (object instanceof Enumeration)
         return new EnumerationIterator( (Enumeration) object);
      else if (object instanceof Collection)
         return ((Collection)object).iterator();
      else if (object.getClass().isArray())
         return new ArrayIterator(object);
      else
         return new SingletonIterator(object);
   }
View Full Code Here

Examples of org.apache.commons.jexl.util.ArrayIterator

    /**
     * {@inheritDoc}
     */
    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();
        } else if (obj instanceof Map) {
            return ((Map) obj).values().iterator();
        } else if (obj instanceof Iterator) {
View Full Code Here

Examples of org.apache.commons.jexl2.internal.ArrayIterator

    public Iterator<?> getIterator(Object obj, JexlInfo info) {
        if (obj instanceof Iterator<?>) {
            return ((Iterator<?>) obj);
        }
        if (obj.getClass().isArray()) {
            return new ArrayIterator(obj);
        }
        if (obj instanceof Map<?,?>) {
            return ((Map<?,?>) obj).values().iterator();
        }
        if (obj instanceof Enumeration<?>) {
View Full Code Here

Examples of org.apache.etch.util.ArrayIterator

    return dim;
  }

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

Examples of org.apache.flex.forks.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.apache.jackrabbit.rmi.remote.ArrayIterator

        Object[] elements = remote.nextObjects();
        long size = remote.getSize();
        if (size == -1 || (elements != null && size > elements.length)) {
            return new BufferIterator(elements, size, remote);
        } else {
            return new ArrayIterator(elements);
        }
    }
View Full Code Here

Examples of org.apache.ojb.broker.util.ArrayIterator

    // Foreign Key fields retrieved here map to FieldDescriptors of the table in the collection
    System.err.println(toString());
      java.util.Iterator it;
      try
      {
        it = new ArrayIterator(collectionDescriptor.getFksToThisClass());
        while (it.hasNext())
          newChildren.add(new javax.swing.tree.DefaultMutableTreeNode("FksToThisClass: " + it.next().toString()));
        it = new ArrayIterator(collectionDescriptor.getFksToItemClass());
        while (it.hasNext())
          newChildren.add(new javax.swing.tree.DefaultMutableTreeNode("FksToItemClass: " + it.next().toString()));
       
      }
      catch (NullPointerException npe)
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.common.ArrayIterator

     * @param nFrom the start of the range (inclusive)
     * @param nTo the stop of the range (exclusive)
   */
  public Iterator getRows(int nFrom, int nTo)
  {
    return new ArrayIterator(m_arrRows.toArray(), nFrom, nTo);
  }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.common.ArrayIterator

    {
        sortRows();

        int nPageSize = getPagingState().getPageSize();
        if (nPageSize <= 0)
            return new ArrayIterator(m_arrRows);

        int nCurrentPage = getPagingState().getCurrentPage();
        int nFrom = nCurrentPage * nPageSize;
        int nTo = (nCurrentPage + 1) * nPageSize;

        return new ArrayIterator(m_arrRows, nFrom, nTo);
    }
View Full Code Here

Examples of org.apache.tapestry.contrib.table.model.common.ArrayIterator

        return (ITableColumn) m_mapColumns.get(strColumn);
    }

    public Iterator getColumns()
    {
        return new ArrayIterator(m_arrColumns);
    }
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.