From 3ae4e63a7139715a824877e473af58a0487d8c72 Mon Sep 17 00:00:00 2001 From: Martin Eyben Date: Wed, 18 Dec 2024 21:09:24 +0100 Subject: [PATCH] fix(display): use array instead of hashmap --- .../java/eirb/pg203/weather/utils/Pair.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/eirb/pg203/weather/utils/Pair.java diff --git a/src/main/java/eirb/pg203/weather/utils/Pair.java b/src/main/java/eirb/pg203/weather/utils/Pair.java new file mode 100644 index 0000000..7b69986 --- /dev/null +++ b/src/main/java/eirb/pg203/weather/utils/Pair.java @@ -0,0 +1,26 @@ +package eirb.pg203.weather.utils; + +public class Pair{ + 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; + } +}