fix(display): use array instead of hashmap
This commit is contained in:
parent
398e197aa4
commit
3ae4e63a71
26
src/main/java/eirb/pg203/weather/utils/Pair.java
Normal file
26
src/main/java/eirb/pg203/weather/utils/Pair.java
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
package eirb.pg203.weather.utils;
|
||||||
|
|
||||||
|
public class Pair<K, V>{
|
||||||
|
private K key;
|
||||||
|
private V value;
|
||||||
|
public Pair(K key, V value) {
|
||||||
|
this.key = key;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public V getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public K getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(V value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(K key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user