com.github.xphsc.collect.iterator.EmptyIterator Maven / Gradle / Ivy
package com.github.xphsc.collect.iterator;
import java.util.Iterator;
/**
* Created by ${huipei.x} on 2017-8-7.
*/
public class EmptyIterator extends AbstractEmptyIterator implements ResettableIterator {
public static final ResettableIterator RESETTABLE_INSTANCE = new EmptyIterator();
public static final Iterator INSTANCE;
public static ResettableIterator resettableEmptyIterator() {
return RESETTABLE_INSTANCE;
}
public static Iterator emptyIterator() {
return INSTANCE;
}
protected EmptyIterator() {
}
static {
INSTANCE = RESETTABLE_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy