package eu.jonahbauer.wizard.client.libgdx.util;

import java.util.Map;

public record Pair<F,S>(F first, S second) implements Map.Entry<F,S> {

    public static <F,S> Pair<F,S> of(F first, S second) {
        return new Pair<>(first, second);
    }

    @Override
    public F getKey() {
        return first();
    }

    @Override
    public S getValue() {
        return second();
    }

    @Override
    public S setValue(S value) {
        throw new UnsupportedOperationException();
    }
}
