xxl.mathematica.Rule Maven / Gradle / Ivy
package xxl.mathematica;
/**
* 规则
*
* @param
* @param
*/
public class Rule {
private K key;
private V value;
public Rule(K key, V value) {
this.key = key;
this.value = value;
}
/**
* 创建一个规则
*
* @param k
* @param v
* @param
* @param
* @return
*/
public static Rule valueOf(K k, V v) {
return new Rule<>(k, v);
}
public K getKey() {
return key;
}
public void setKey(K key) {
this.key = key;
}
public V getValue() {
return value;
}
public void setValue(V value) {
this.value = value;
}
@Override
public String toString() {
return "Rule{" +
"key=" + key +
", value=" + value +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy