Package org.apache.commons.collections.iterators

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


  public Iterator<String> iterator() {
    if (value != null) {
      return new SingletonIterator(value);
    }
    if (values != null) {
      return new ObjectArrayIterator(values);
    }
    return EmptyIterator.INSTANCE;
  }
View Full Code Here



    //----------------------------------------------------------< NodeTypes >---

    public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo) throws RepositoryException {
        return new ObjectArrayIterator(nodeTypes.getQNodeTypeDefinitions());
    }
View Full Code Here

    }

    public Iterator getQNodeTypeDefinitions(SessionInfo sessionInfo, Name[] nodeTypeNames)
            throws RepositoryException {

        return new ObjectArrayIterator(nodeTypes.getQNodeTypeDefinitions(nodeTypeNames));
    }
View Full Code Here

     * @param array  the array over which to iterate
     * @return  an iterator over the array
     * @throws NullPointerException if array is null
     */
    public static ResettableIterator arrayIterator(Object[] array) {
        return new ObjectArrayIterator(array);
    }
View Full Code Here

     * @throws IndexOutOfBoundsException if start is less than zero or greater
     *  than the length of the array
     * @throws NullPointerException if array is null
     */
    public static ResettableIterator arrayIterator(Object[] array, int start) {
        return new ObjectArrayIterator(array, start);
    }
View Full Code Here

     * @throws IndexOutOfBoundsException if array bounds are invalid
     * @throws IllegalArgumentException if end is before start
     * @throws NullPointerException if array is null
     */
    public static ResettableIterator arrayIterator(Object[] array, int start, int end) {
        return new ObjectArrayIterator(array, start, end);
    }
View Full Code Here

           
        } else if (obj instanceof Collection) {
            return ((Collection) obj).iterator();
           
        } else if (obj instanceof Object[]) {
            return new ObjectArrayIterator((Object[]) obj);
           
        } else if (obj instanceof Enumeration) {
            return new EnumerationIterator((Enumeration) obj);
           
        } else if (obj instanceof Map) {
View Full Code Here

       
        writer.print("\n -----===== SNOOZED QUEUES =====-----\n");
        Object[] objs = snoozedClassQueues.toArray();
        DelayedWorkQueue[] qs = Arrays.copyOf(objs,objs.length,DelayedWorkQueue[].class);
        Arrays.sort(qs);
        appendQueueReports(writer, "SNOOZED", new ObjectArrayIterator(qs), getSnoozedCount(), maxQueuesPerReportCategory);
       
        writer.print("\n -----===== INACTIVE QUEUES =====-----\n");
        SortedMap<Integer,Queue<String>> sortedInactives = getInactiveQueuesByPrecedence();
        for(Integer prec : sortedInactives.keySet()) {
            Queue<String> inactiveQueues = sortedInactives.get(prec);
View Full Code Here

/* 205 */     return new SingletonListIterator(object);
/*     */   }
/*     */
/*     */   public static ResettableIterator arrayIterator(Object[] array)
/*     */   {
/* 221 */     return new ObjectArrayIterator(array);
/*     */   }
View Full Code Here

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

TOP

Related Classes of org.apache.commons.collections.iterators.ObjectArrayIterator

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.