org.apache.commons.collections.ResettableIterator Java Examples
The following examples show how to use
org.apache.commons.collections.ResettableIterator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ModbusBinding.java From openhab1-addons with Eclipse Public License 2.0 | 6 votes |
private static Iterator<String> stringArrayIterator(final String[] chunks) { Iterator<String> settingIterator = new Iterator<String>() { private ResettableIterator inner = IteratorUtils.arrayIterator(chunks); @Override public String next() { return (String) inner.next(); } @Override public boolean hasNext() { return inner.hasNext(); } @Override public void remove() { inner.remove(); } }; return settingIterator; }