(@NotNull T type)
| 233 | } |
| 234 | |
| 235 | @NotNull |
| 236 | private static <T extends StructureType> T register(@NotNull T type) { |
| 237 | Preconditions.checkNotNull(type, "Cannot register null StructureType."); |
| 238 | Preconditions.checkArgument(!structureTypeMap.containsKey(type.getName()), "Cannot register same StructureType twice. %s", type.getName()); |
| 239 | StructureType.structureTypeMap.put(type.getName(), type); |
| 240 | return type; |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * Get all registered {@link StructureType}s. |
no test coverage detected