diff options
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java b/src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java index 5d3210a4..bf4f810f 100644 --- a/src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java +++ b/src/de/lmu/ifi/dbs/elki/utilities/pairs/IntIntPair.java @@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.utilities.pairs; This file is part of ELKI: Environment for Developing KDD-Applications Supported by Index-Structures - Copyright (C) 2013 + Copyright (C) 2014 Ludwig-Maximilians-Universität München Lehr- und Forschungseinheit für Datenbanksysteme ELKI Development Team @@ -28,13 +28,11 @@ import java.util.Comparator; /** * Pair storing two integers. * - * Since int is a native type, this can't be done via the {@link CPair} generic. - * * @author Erich Schubert * * @apiviz.has Comparator */ -public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer, Integer> { +public class IntIntPair implements Comparable<IntIntPair> { /** * first value */ @@ -119,15 +117,6 @@ public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer } /** - * @deprecated use pair.first to avoid boxing! - */ - @Override - @Deprecated - public final Integer getFirst() { - return Integer.valueOf(first); - } - - /** * Set first value * * @param first new value @@ -137,15 +126,6 @@ public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer } /** - * @deprecated use pair.first to avoid boxing! - */ - @Override - @Deprecated - public final Integer getSecond() { - return Integer.valueOf(second); - } - - /** * Set second value * * @param second new value @@ -153,14 +133,14 @@ public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer public final void setSecond(int second) { this.second = second; } - + @Override public String toString() { return "(" + first + ", " + second + ")"; } /** - * Comparator to compare by second component only + * Comparator to compare by second component only */ public static final Comparator<IntIntPair> BYFIRST_COMPARATOR = new Comparator<IntIntPair>() { @Override @@ -168,9 +148,9 @@ public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer return o1.first - o2.first; } }; - + /** - * Comparator to compare by second component only + * Comparator to compare by second component only */ public static final Comparator<IntIntPair> BYSECOND_COMPARATOR = new Comparator<IntIntPair>() { @Override @@ -178,7 +158,7 @@ public class IntIntPair implements Comparable<IntIntPair>, PairInterface<Integer return o1.second - o2.second; } }; - + /** * Comparator to compare by swapped components */ |