mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 18:54:34 +00:00
36 lines
570 B
Java
36 lines
570 B
Java
package com.jpexs.proxy;
|
|
|
|
class Key {
|
|
|
|
private String name = null;
|
|
|
|
/**
|
|
* Create a Key.
|
|
*/
|
|
Key(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
/**
|
|
* Return a lowercase hashCode.
|
|
*/
|
|
public int hashCode() {
|
|
String s = name.toLowerCase();
|
|
return s.hashCode();
|
|
}
|
|
|
|
/**
|
|
* Return a lowercase equals.
|
|
*/
|
|
public boolean equals(Object obj) {
|
|
return name.equalsIgnoreCase(obj.toString());
|
|
}
|
|
|
|
/**
|
|
* Return the key.
|
|
*/
|
|
public String toString() {
|
|
return name;
|
|
}
|
|
}
|