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

com.hextremelabs.quickee.core.Pair Maven / Gradle / Ivy

There is a newer version: 1.0.Alpha18
Show newest version
/*
 * 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy