From 143109cca80460fd7d4fcb82377cfbc61c0e1907 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 28 Jan 2022 17:12:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20Pa?= =?UTF-8?q?ir=20=D0=B2=20haiti-utils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/dev/struchkov/haiti/utils/Pair.java | 35 +++++++++++++++++++ pom.xml | 25 ------------- 2 files changed, 35 insertions(+), 25 deletions(-) create mode 100644 haiti-utils/src/main/java/dev/struchkov/haiti/utils/Pair.java diff --git a/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Pair.java b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Pair.java new file mode 100644 index 0000000..6ef4274 --- /dev/null +++ b/haiti-utils/src/main/java/dev/struchkov/haiti/utils/Pair.java @@ -0,0 +1,35 @@ +package dev.struchkov.haiti.utils; + +/** + * Адаптированная реализация Pair из пакета javafx.util. Реализация необходима, так как в некоторых сборках JDK этот + * пакет может отсутствовать. + * + * @author mstruchkov 21.06.2019 + */ +public class Pair { + + private K key; + private V value; + + public Pair(K key, V value) { + this.key = key; + this.value = value; + } + + 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; + } + +} diff --git a/pom.xml b/pom.xml index dc35cf9..09f1ee9 100644 --- a/pom.xml +++ b/pom.xml @@ -144,31 +144,6 @@ release - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - - never - - - - - - central - Central Repository - https://repo.maven.apache.org/maven2 - default - - false - - -