Skip to content

Commit

Permalink
Remove dependency on javafx
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarenceThreepwood authored and highker committed Sep 10, 2020
1 parent baece53 commit b66f102
Showing 1 changed file with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import io.airlift.units.DataSize;
import javafx.util.Pair;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
Expand All @@ -55,6 +54,8 @@
import org.openjdk.jmh.runner.options.VerboseMode;
import org.testng.annotations.Test;

import javax.annotation.concurrent.Immutable;

import java.io.File;
import java.io.IOException;
import java.math.BigInteger;
Expand Down Expand Up @@ -91,6 +92,7 @@
import static com.google.common.io.MoreFiles.deleteRecursively;
import static com.google.common.io.RecursiveDeleteOption.ALLOW_INSECURE;
import static io.airlift.units.DataSize.Unit.MEGABYTE;
import static java.util.Objects.requireNonNull;
import static java.util.UUID.randomUUID;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.stream.Collectors.toList;
Expand Down Expand Up @@ -473,4 +475,27 @@ public static void main(String[] args)

new Runner(options).run();
}

@Immutable
private static class Pair<K, V>
{
private final K key;
private final V value;

public Pair(K key, V value)
{
this.key = requireNonNull(key, "key is null");
this.value = requireNonNull(value, "value is null");
}

public K getKey()
{
return key;
}

public V getValue()
{
return value;
}
}
}

0 comments on commit b66f102

Please sign in to comment.