MetaKey class
Пакет: com.hypixel.hytale.server.core.meta
Файл: com/hypixel/hytale/server/core/meta/MetaKey.java
Поля (2)
| Модификаторы | Тип | Имя |
|---|---|---|
final |
int |
id |
|
MetaKey |
var2 |
Методы (2)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
public |
int |
getIdint getId() |
|
|
if if(this == var1) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.meta;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;
class="kw">public class MetaKey<T> {
class="kw">private class="kw">final int id;
MetaKey(int var1) {
this.id = var1;
}
class="kw">public int getId() {
class="kw">return this.id;
}
@Override
class="kw">public boolean equals(@Nullable Object var1) {
if (this == var1) {
class="kw">return true;
} else if (var1 != null && this.getClass() == var1.getClass()) {
MetaKey var2 = (MetaKey<?>)var1;
class="kw">return this.id == var2.id;
} else {
class="kw">return false;
}
}
@Override
class="kw">public int hashCode() {
class="kw">return this.id;
}
@Nonnull
@Override
class="kw">public String toString() {
class="kw">return "MetaKey{id=" + this.id + "}";
}
}