Package org.apache.commons.collections.iterators

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


    /**
     * @see org.acegisecurity.afterinvocation.Filterer#iterator()
     */
    public Iterator iterator() {
        return new ArrayIterator(list);
    }
View Full Code Here


           
        } else if ( value != null ) {
            // if we have an array return an ArrayIterator
            Class type = value.getClass();
            if ( type.isArray() ) {
                return new ArrayIterator( value );
            }
        }
       
        // we've got something we can't deal with
        // so return an empty iterator
View Full Code Here

/* 221 */     return new ObjectArrayIterator(array);
/*     */   }
/*     */
/*     */   public static ResettableIterator arrayIterator(Object array)
/*     */   {
/* 236 */     return new ArrayIterator(array);
/*     */   }
View Full Code Here

/* 253 */     return new ObjectArrayIterator(array, start);
/*     */   }
/*     */
/*     */   public static ResettableIterator arrayIterator(Object array, int start)
/*     */   {
/* 271 */     return new ArrayIterator(array, start);
/*     */   }
View Full Code Here

/* 289 */     return new ObjectArrayIterator(array, start, end);
/*     */   }
/*     */
/*     */   public static ResettableIterator arrayIterator(Object array, int start, int end)
/*     */   {
/* 308 */     return new ArrayIterator(array, start, end);
/*     */   }
View Full Code Here

/*     */     }
/* 872 */     if ((obj instanceof Dictionary)) {
/* 873 */       return new EnumerationIterator(((Dictionary)obj).elements());
/*     */     }
/* 875 */     if ((obj != null) && (obj.getClass().isArray())) {
/* 876 */       return new ArrayIterator(obj);
/*     */     }
/*     */     try
/*     */     {
/* 880 */       Method method = obj.getClass().getMethod("iterator", null);
/* 881 */       if (Iterator.class.isAssignableFrom(method.getReturnType())) {
View Full Code Here

      }

        // Get Field descriptors FieldDescriptor
        if (cld.getFieldDescriptions() != null)
        {
            it = new ArrayIterator(cld.getFieldDescriptions());
            while (it.hasNext())
            {
                FieldDescriptor fieldDesc = (FieldDescriptor)it.next();
                newChildren.add(new OjbMetaFieldDescriptorNode(
                        this.getOjbMetaTreeModel().getRepository(),
View Full Code Here

    // 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

        {
            colIterator = ((Collection) collectionOrArray).iterator();
        }
        else if (collectionOrArray.getClass().isArray())
        {
            colIterator = new ArrayIterator(collectionOrArray);
        }
        else
        {
            throw new OJBRuntimeException( "Given object collection of type '"
                    + (collectionOrArray != null ? collectionOrArray.getClass().toString() : "null")
View Full Code Here

        for (int i = 0; i < keys.length; i++)
        {
            keys[i] = paramsInfo[i][0];
        }

        return new ArrayIterator(keys);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.iterators.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.