Browse Source

Added Interface HasRequirement

jimFirstDesign
Felix Stupp 2 years ago
parent
commit
7ee325d760
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/de/banananetwork/dsa/requirements/HasRequirement.java

+ 13
- 0
src/de/banananetwork/dsa/requirements/HasRequirement.java View File

@ -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