package code.kalter.longflight; import java.io.IOException; /** * Объект и путь к нему * * @author KalterFive */ public class ObjectItem { private final Object image; private final String path; public ObjectItem(Object object, String path) throws IOException { this.path = path; this.image = object; } public Object get(String path) { if (this.path.equals(path)) { return image; } return null; } }