1 /*
2 * Copyright (c) Patrick Magauran 2018.
3 * Licensed under the AGPLv3. All conditions of said license apply.
4 * This file is part of ABOS.
5 *
6 * ABOS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ABOS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with ABOS. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 package Utilities;
21
22 import javafx.util.Pair;
23
24 public class TreeItemPair<K, V> extends Pair<K, V> {
25
26 public TreeItemPair(K key, V value) {
27 super(key, value);
28 }
29
30 public TreeItemPair(K key) {
31 super(key, null);
32 }
33
34 @Override
35 public String toString() {
36 return this.getKey().toString();
37 }
38 }