override equals function for hashing

lombok was complaining
This commit is contained in:
CocoTheOwner 2021-08-14 22:28:31 +02:00
parent 486e92dfc9
commit 5c541275c5

View File

@ -617,6 +617,14 @@ public class VirtualDecreeCommand {
return Objects.hash(getName(), getDescription(), getType(), getPath());
}
@Override
public boolean equals(Object obj){
if (!(obj instanceof VirtualDecreeCommand)){
return false;
}
return this.hashCode() == obj.hashCode();
}
public boolean matches(String in)
{
KList<String> a = getNames();