List of usage examples for org.apache.commons.collections15.iterators EmptyIterator INSTANCE
Iterator INSTANCE
To view the source code for org.apache.commons.collections15.iterators EmptyIterator INSTANCE.
Click Source Link
From source file:org.openanzo.rdf.utils.MultiTreeMap.java
/** * Gets an iterator for the collection mapped to the specified key. * /*from w w w. ja v a2 s . com*/ * @param key * the key to get an iterator for * @return the iterator of the collection at the key, empty iterator if key not in map * @since Commons Collections 3.1 */ @SuppressWarnings("unchecked") public Iterator<V> iterator(Object key) { Collection<V> coll = getCollection(key); if (coll == null) { return EmptyIterator.INSTANCE; } return coll.iterator(); }