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

com.github.unidbg.linux.android.dvm.Enumeration Maven / Gradle / Ivy

package com.github.unidbg.linux.android.dvm;

import java.util.Iterator;
import java.util.List;

public class Enumeration extends DvmObject> {

    private final Iterator> iterator;

    public Enumeration(VM vm, List> value) {
        super(vm.resolveClass("java/util/Enumeration"), value);

        this.iterator = value == null ? null : value.iterator();
    }

    public boolean hasMoreElements() {
        return iterator != null && iterator.hasNext();
    }

    public DvmObject nextElement() {
        return iterator.next();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy