// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.meta;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class MetaKey<T>
{
    private final int id;
    
    MetaKey(final int id) {
        this.id = id;
    }
    
    public int getId() {
        return this.id;
    }
    
    @Override
    public boolean equals(@Nullable final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || this.getClass() != o.getClass()) {
            return false;
        }
        final MetaKey<?> metaKey = (MetaKey<?>)o;
        return this.id == metaKey.id;
    }
    
    @Override
    public int hashCode() {
        return this.id;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "MetaKey{id=" + this.id;
    }
}
