CodecKey.java
package com.hypixel.hytale.codec.store;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class CodecKey<T> {
private final String id;
public CodecKey(String id) {
this.id = id;
}
public String getId() {
return this.id;
}
public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
} else if (o != null && this.getClass() == o.getClass()) {
CodecKey<?> codecKey = (CodecKey)o;
return this.id != null ? this.id.equals(codecKey.id) : codecKey.id == null;
} else {
return false;
}
}
public int hashCode() {
.id != ? .id.hashCode() : ;
}
String {
+ .id + ;
}
}