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

package com.hypixel.hytale.codec.store;

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

public class CodecKey<T>
{
    private final String id;
    
    public CodecKey(final String id) {
        this.id = id;
    }
    
    public String 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 CodecKey<?> codecKey = (CodecKey<?>)o;
        return (this.id != null) ? this.id.equals(codecKey.id) : (codecKey.id == null);
    }
    
    @Override
    public int hashCode() {
        return (this.id != null) ? this.id.hashCode() : 0;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "CodecKey{id='" + this.id + "'}";
    }
}
