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

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

import javax.annotation.Nonnull;

public class Value<T>
{
    private T value;
    private String documentPath;
    private String valueName;
    
    private Value(final String documentPath, final String valueName) {
        this.documentPath = documentPath;
        this.valueName = valueName;
    }
    
    private Value(final T value) {
        this.value = value;
    }
    
    public T getValue() {
        return this.value;
    }
    
    public String getDocumentPath() {
        return this.documentPath;
    }
    
    public String getValueName() {
        return this.valueName;
    }
    
    @Nonnull
    public static <T> Value<T> ref(final String document, final String value) {
        return new Value<T>(document, value);
    }
    
    @Nonnull
    public static <T> Value<T> of(final T value) {
        return new Value<T>(value);
    }
}
