blob: 36416b54f0b3927ea3069e061b33cdb8509e2b69 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
*/
|