All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alapierre.func.Pair Maven / Gradle / Ivy

The newest version!
package io.alapierre.func;

import org.jetbrains.annotations.NotNull;

import java.io.Serializable;

/**
 * Created 12.12.18 copyright original authors 2018
 *
 * @author Adrian Lapierre {@literal }
 */
public class Pair {

    private final K key;

    private final V value;

    public Pair(@NotNull K key, @NotNull V value) {
        this.key = key;
        this.value = value;
    }

    @NotNull K getKey() {
        return key;
    }

    @NotNull V getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy