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

Alachisoft.NCache.Common.DataStructures.SRTreeEnumerator Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package Alachisoft.NCache.Common.DataStructures;

public class SRTreeEnumerator {

    private java.util.ArrayList _list;
    private java.util.Iterator _ide;

    public SRTreeEnumerator(java.util.ArrayList list) {
        _list = list;
        _ide = _list.iterator();
    }

    public final boolean MoveNext() {
        try {
            return _ide.hasNext();
        } catch (RuntimeException e) {
            return false;
        }
    }

    public final Object getCurrent() {
        return _ide.next();
    }

    public final void Reset() {
        _ide = _list.iterator();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy