/* */ package NET.worlds.scape; /* */ /* */ import java.util.Enumeration; /* */ import java.util.NoSuchElementException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class EnumProperties /* */ implements Enumeration /* */ { /* */ private Properties props; /* */ private Property next; /* 17 */ private int index = 0; /* */ /* */ public EnumProperties(Object obj) { /* 20 */ if ((obj instanceof Properties)) /* 21 */ this.props = ((Properties)obj); /* */ } /* */ /* */ public boolean hasMoreElements() { /* 25 */ if ((this.props != null) && (this.next == null)) { /* */ try { /* 27 */ this.next = ((Property)this.props.properties(this.index++, 0, 0, /* 28 */ null)); /* 29 */ if ((!$assertionsDisabled) && (this.next.index != this.index - 1)) throw new AssertionError(); /* */ } catch (NoSuchPropertyException localNoSuchPropertyException) {} /* */ } /* 32 */ return this.next != null; /* */ } /* */ /* */ public Object nextElement() { /* 36 */ if (hasMoreElements()) /* */ try { /* 38 */ return this.next; /* */ } finally { /* 40 */ this.next = null; /* */ } /* 42 */ throw new NoSuchElementException(); /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\EnumProperties.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */