refactor registries

This commit is contained in:
dfsek
2021-06-24 08:16:15 -07:00
parent c26f4dfc2f
commit 255e4396dd
8 changed files with 10 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.api.registry;
import com.dfsek.terra.api.registry.exception.DuplicateEntryException;
public interface CheckedRegistry<T> extends Registry<T> {
/**
* Add a value to this registry, checking whether it is present first.

View File

@@ -1,5 +1,7 @@
package com.dfsek.terra.api.registry;
import com.dfsek.terra.api.registry.exception.DuplicateEntryException;
public interface OpenRegistry<T> extends Registry<T> {
/**
* Add a value to this registry.

View File

@@ -1,4 +1,4 @@
package com.dfsek.terra.api.registry;
package com.dfsek.terra.api.registry.exception;
/**
* Thrown when a duplicate entry is found in a registry.