mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +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());
|
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)
|
public boolean matches(String in)
|
||||||
{
|
{
|
||||||
KList<String> a = getNames();
|
KList<String> a = getNames();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user