com.hextremelabs.quickee.core.Pair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quickee Show documentation
Show all versions of quickee Show documentation
A utility Java EE development library
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.hextremelabs.quickee.core;
/**
* An abstract representation of a key-value pair datastructure.
*
* @author oladeji
*/
public abstract class Pair {
protected static final long serialVersionUID = 1L;
public static ImmutablePair newImmutablePairOf(final K key, final V value) {
return ImmutablePair.of(key, value);
}
public static MutablePair newMutablePairOf(final K key, final V value) {
return MutablePair.of(key, value);
}
public abstract K getKey();
public abstract void setKey(K key);
public abstract V getValue();
public abstract void setValue(V value);
}