(String key)
| 11 | private static Map<String, BaseObject> entities; |
| 12 | |
| 13 | public static boolean hasEntity(String key) { |
| 14 | return entities.containsKey(key); |
| 15 | } |
| 16 | |
| 17 | public static void load(Schema schema) { |
| 18 | entities = schema.getActions().stream().collect(Collectors.toMap(BaseObject::getId, baseObject -> baseObject)); |