1 11 package org.eclipse.core.internal.utils; 12 13 import java.util.Enumeration ; 14 15 18 public class EmptyEnumeration implements Enumeration { 19 22 protected static Enumeration instance = new EmptyEnumeration(); 23 24 27 public EmptyEnumeration() { 28 super(); 29 } 30 31 34 public static Enumeration getEnumeration() { 35 return instance; 36 } 37 38 41 public boolean hasMoreElements() { 42 return false; 43 } 44 45 48 public Object nextElement() { 49 throw new java.util.NoSuchElementException (Messages.utils_noElements); 50 } 51 } 52 | Popular Tags |