Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
736 B
43 lines
736 B
package dev.openrs2.asm;
|
|
|
|
import java.util.Objects;
|
|
|
|
public final class MemberDesc {
|
|
private final String name, desc;
|
|
|
|
public MemberDesc(String name, String desc) {
|
|
this.name = name;
|
|
this.desc = desc;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getDesc() {
|
|
return desc;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MemberDesc fieldRef = (MemberDesc) o;
|
|
return name.equals(fieldRef.name) &&
|
|
desc.equals(fieldRef.desc);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(name, desc);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.format("%s %s", desc, name);
|
|
}
|
|
}
|
|
|