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