1 package com.thaiopensource.util; 2 3 public interface PropertyMap { 4 public static final PropertyMap EMPTY = new PropertyMap() { 5 public Object get(PropertyId pid) { 6 return null; 7 } 8 9 public boolean contains(PropertyId pid) { 10 return false; 11 } 12 13 public int size() { 14 return 0; 15 } 16 17 public PropertyId getKey(int i) { 18 throw new IndexOutOfBoundsException (); 19 } 20 }; 21 Object get(PropertyId pid); 22 boolean contains(PropertyId pid); 23 int size(); 24 PropertyId getKey(int i); 25 } 26 | Popular Tags |