Browse Source

Added Interface HasRequirement

jimFirstDesign
Felix Stupp 3 years ago
parent
commit
7ee325d760
  1. 13
      src/de/banananetwork/dsa/requirements/HasRequirement.java

13
src/de/banananetwork/dsa/requirements/HasRequirement.java

@ -0,0 +1,13 @@
package de.banananetwork.dsa.requirements;
import java.util.Objects;
public interface HasRequirement { //TODO Rename
Requirement getRequirement();
default boolean hasRequirement() {
return !Objects.isNull(getRequirement());
}
}
Loading…
Cancel
Save