1 18 19 package org.objectweb.util.monolog.wrapper.common; 20 21 import java.util.Enumeration ; 22 23 29 public class EnumrationImpl implements Enumeration { 30 31 protected Object [] objs = null; 32 33 protected int pos; 34 35 public EnumrationImpl(Object [] os) { 36 objs = (os==null ? new Object [0] : os); 37 pos = 0; 38 } 39 40 public boolean hasMoreElements() { 41 return pos<objs.length; 42 } 43 44 public Object nextElement() { 45 return objs[pos++]; 46 } 47 } 48 | Popular Tags |