summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/EnumProperties.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/EnumProperties.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/EnumProperties.java')
-rw-r--r--NET/worlds/scape/EnumProperties.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/NET/worlds/scape/EnumProperties.java b/NET/worlds/scape/EnumProperties.java
new file mode 100644
index 0000000..36416b5
--- /dev/null
+++ b/NET/worlds/scape/EnumProperties.java
@@ -0,0 +1,50 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import java.util.Enumeration;
+/* */ import java.util.NoSuchElementException;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class EnumProperties
+/* */ implements Enumeration<Object>
+/* */ {
+/* */ 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
+ */ \ No newline at end of file