UResourceBundleIterator.java
769 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.agl.util;
import com.adobe.agl.util.UResourceBundle;
import java.util.NoSuchElementException;
public class UResourceBundleIterator {
private UResourceBundle bundle;
private int index = 0;
private int size = 0;
public UResourceBundleIterator(UResourceBundle bndl) {
this.bundle = bndl;
this.size = this.bundle.getSize();
}
public UResourceBundle next() throws NoSuchElementException {
if (this.index < this.size) {
return this.bundle.get(this.index++);
}
throw new NoSuchElementException();
}
public void reset() {
this.index = 0;
}
public boolean hasNext() {
return this.index < this.size;
}
}