mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
override equals function for hashing
lombok was complaining
This commit is contained in:
parent
486e92dfc9
commit
5c541275c5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user