com.fasterxml.jackson.databind.util.EmptyIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jersey-all Show documentation
Show all versions of jersey-all Show documentation
jersey-all is a rebundled verison of Jersey as one OSGi bundle.
package com.fasterxml.jackson.databind.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Implementation of {@link Iterator} for Empty collections.
* While JDK has an implementation starting with 1.7, we need this
* class until then.
*
* @since 2.2 (before, we had embedded instances)
*/
public class EmptyIterator implements Iterator
{
private final static EmptyIterator> instance = new EmptyIterator