Package org.apache.commons.collections.iterators

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


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


/*     */     }
/* 860 */     if ((obj instanceof Collection)) {
/* 861 */       return ((Collection)obj).iterator();
/*     */     }
/* 863 */     if ((obj instanceof Object[])) {
/* 864 */       return new ObjectArrayIterator((Object[])obj);
/*     */     }
/* 866 */     if ((obj instanceof Enumeration)) {
/* 867 */       return new EnumerationIterator((Enumeration)obj);
/*     */     }
/* 869 */     if ((obj instanceof Map)) {
View Full Code Here

  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

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.