From c8a541912fc2f0d688614edacd2606117c353180 Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 21 Dec 2016 02:38:57 +0100 Subject: [PATCH] Minor update - Added simple Pair object due to lack of javafx support --- src/com/tofvesson/async/WorkerThread.java | 2 +- src/com/tofvesson/collections/Pair.java | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/com/tofvesson/collections/Pair.java diff --git a/src/com/tofvesson/async/WorkerThread.java b/src/com/tofvesson/async/WorkerThread.java index 902eb53..f4080c3 100644 --- a/src/com/tofvesson/async/WorkerThread.java +++ b/src/com/tofvesson/async/WorkerThread.java @@ -1,6 +1,6 @@ package com.tofvesson.async; -import javafx.util.Pair; +import com.tofvesson.collections.Pair; import java.lang.reflect.Field; import java.lang.reflect.Method; diff --git a/src/com/tofvesson/collections/Pair.java b/src/com/tofvesson/collections/Pair.java new file mode 100644 index 0000000..2cf99b5 --- /dev/null +++ b/src/com/tofvesson/collections/Pair.java @@ -0,0 +1,16 @@ +package com.tofvesson.collections; + +public class Pair { + + private final K k; + private V v; + + public Pair(K k, V v){ + this.k = k; + this.v = v; + } + + public K getKey(){ return k; } + public V getValue(){ return v; } + public void setValue(V v){ this.v = v; } +}