public static Image get(ImageType imageType) { assertNotNull(imageType, "iamgeType"); final Image image = images[imageType.ordinal()]; assertNotNull(image, imageType.toString()); return image; }
public static void loadImageResources() throws IOException { final ClassLoader cl = Images.class.getClassLoader(); for (ImageType imageType : ImageType.values()) { images[imageType.ordinal()] = readFromImageDir(imageType.getFileName()); } }