List of usage examples for org.apache.commons.collections4.iterators ArrayIterator ArrayIterator
public ArrayIterator(final Object array)
From source file:com.github.xbn.array.helper.AbstractPrimitiveArrayHelper.java
public Iterator<E> getIterator(Object obj_thatIsPrimArr, String array_name) { return (new ArrayIterator<E>(getPrimitiveArray(obj_thatIsPrimArr, NullContainer.BAD, array_name))); }
From source file:com.feilong.core.lang.ObjectUtilTemp.java
/** * To iterator./*from w w w . j a v a2 s .co m*/ */ @Test public void toIterator() { String[] array = { "1", "223" }; LOGGER.debug(JsonUtil.format(toIterator(array))); int[] arrays = { 1, 2 }; LOGGER.debug(JsonUtil.format(toIterator(arrays))); LOGGER.debug(JsonUtil.format(new ArrayIterator(arrays))); LOGGER.debug(JsonUtil.format(new ArrayIterator(array))); //LOGGER.debug(JsonUtil.format(new ArrayIterator(null))); }
From source file:com.github.xbn.experimental.listify.NewListifyToStrings.java
public final Iterator<String> iterator() { try {/*from ww w .j a v a 2 s.co m*/ return (new ArrayIterator<String>(getEArrayCopyOrNull(NullContainer.BAD, CopyElements.NO))); } catch (RuntimeException rx) { ciRawObjectNull(); throw rx; } }
From source file:com.github.xbn.experimental.listify.NewListifyToStrings.java
public final Iterator<String> iterator() { try {/*from w w w .ja va2 s. co m*/ return (new ArrayIterator<String>(getEArrayCopyOrNull(NullContainer.BAD, null))); } catch (RuntimeException rx) { ciRawObjectNull(); throw rx; } }