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

com.squarespace.less.core.Pair Maven / Gradle / Ivy

The newest version!
package com.squarespace.less.core;


/**
 * Holds a key-value pair.
 */
public class Pair {

  private final K key;
  private final V val;

  private Pair(K k, V v) {
    this.key = k;
    this.val = v;
  }

  public static  Pair of(K key, V val) {
    return new Pair<>(key, val);
  }

  public K key() {
    return key;
  }

  public V val() {
    return val;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy