All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xphsc.collect.iterator.EmptyIterator Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
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