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

webit.script.util.collection.EnumerationIterAdapter Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.util.collection;

import java.util.Enumeration;

/**
 *
 * @author Zqq
 */
public class EnumerationIterAdapter extends AbstractIter {

    private final Enumeration enumeration;

    public EnumerationIterAdapter(Enumeration enumeration) {
        this.enumeration = enumeration;
    }

    @Override
    protected E _next() {
        return enumeration.nextElement();
    }

    public boolean hasNext() {
        return enumeration.hasMoreElements();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy