Added Interface HasRequirement
parent
13a6f32cea
commit
7ee325d760
@ -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…
Reference in New Issue