Permalink
Browse files

Removing a bunch of {@inheritDoc}s

  • Loading branch information...
rkapsi committed Nov 25, 2010
1 parent bef01b6 commit 478498d8e1dd0201b5e74a555404ffef40f14ed6
View
No changes.
@@ -19,10 +19,7 @@
public abstract class AbstractKeyAnalyzer<K> implements KeyAnalyzer<K> {
private static final long serialVersionUID = -20497563720380683L;
-
- /**
- * {@inheritDoc}
- */
+
@SuppressWarnings("unchecked")
@Override
public int compare(K o1, K o2) {
@@ -49,31 +49,18 @@ public AbstractTrie(KeyAnalyzer<? super K> keyAnalyzer) {
return keyAnalyzer;
}
- /**
- * {@inheritDoc}
- */
+ @Override
public K selectKey(K key) {
Map.Entry<K, V> entry = select(key);
- if (entry == null) {
- return null;
- }
- return entry.getKey();
+ return entry != null ? entry.getKey() : null;
}
- /**
- * {@inheritDoc}
- */
+ @Override
public V selectValue(K key) {
Map.Entry<K, V> entry = select(key);
- if (entry == null) {
- return null;
- }
- return entry.getValue();
+ return entry != null ? entry.getValue() : null;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();
@@ -186,48 +173,33 @@ public V setKeyValue(K key, V value) {
return setValue(value);
}
- /**
- * {@inheritDoc}
- */
@Override
public K getKey() {
return key;
}
- /**
- * {@inheritDoc}
- */
@Override
public V getValue() {
return value;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public V setValue(V value) {
V previous = this.value;
this.value = value;
return previous;
}
- /**
- * {@inheritDoc}
- */
@Override
public int hashCode() {
return hashCode;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
- } else if (!(o instanceof Map.Entry)) {
+ } else if (!(o instanceof Map.Entry<?, ?>)) {
return false;
}
@@ -239,9 +211,6 @@ public boolean equals(Object o) {
return false;
}
- /**
- * {@inheritDoc}
- */
@Override
public String toString() {
return key + "=" + value;
@@ -54,25 +54,16 @@ public int getMaxLengthInBits() {
return maxLengthInBits;
}
- /**
- * {@inheritDoc}
- */
@Override
public int bitsPerElement() {
return 1;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int lengthInBits(BigInteger key) {
return (key != null ? key.bitLength() : 0);
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isBitSet(BigInteger key, int bitIndex, int lengthInBits) {
if (key == null) {
@@ -90,9 +81,6 @@ public boolean isBitSet(BigInteger key, int bitIndex, int lengthInBits) {
return key.testBit(idx);
}
- /**
- * {@inheritDoc}
- */
@Override
public int bitIndex(BigInteger key, int offsetInBits, int lengthInBits,
BigInteger other, int otherOffsetInBits, int otherLengthInBits) {
@@ -132,9 +120,6 @@ public int bitIndex(BigInteger key, int offsetInBits, int lengthInBits,
return KeyAnalyzer.EQUAL_BIT_KEY;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isPrefix(BigInteger prefix, int offsetInBits,
int lengthInBits, BigInteger key) {
@@ -72,25 +72,16 @@ public int getMaxLengthInBits() {
return maxLengthInBits;
}
- /**
- * {@inheritDoc}
- */
@Override
public int bitsPerElement() {
return LENGTH;
}
- /**
- * {@inheritDoc}
- */
@Override
public int lengthInBits(byte[] key) {
return (key != null ? key.length * bitsPerElement() : 0);
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isBitSet(byte[] key, int bitIndex, int lengthInBits) {
if (key == null) {
@@ -108,10 +99,7 @@ public boolean isBitSet(byte[] key, int bitIndex, int lengthInBits) {
int bit = (int)(keyBitIndex % LENGTH);
return (key[index] & mask(bit)) != 0;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitIndex(byte[] key, int offsetInBits, int lengthInBits,
byte[] other, int otherOffsetInBits, int otherLengthInBits) {
@@ -151,9 +139,6 @@ public int bitIndex(byte[] key, int offsetInBits, int lengthInBits,
return KeyAnalyzer.EQUAL_BIT_KEY;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isPrefix(byte[] prefix, int offsetInBits,
int lengthInBits, byte[] key) {
@@ -174,9 +159,6 @@ public boolean isPrefix(byte[] prefix, int offsetInBits,
return true;
}
- /**
- * {@inheritDoc}
- */
@Override
public int compare(byte[] o1, byte[] o2) {
if (o1 == null) {
@@ -45,34 +45,22 @@
private static int mask(int bit) {
return MSB >>> bit;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitsPerElement() {
return 1;
}
- /**
- * {@inheritDoc}
- */
@Override
public int lengthInBits(Byte key) {
return LENGTH;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public boolean isBitSet(Byte key, int bitIndex, int lengthInBits) {
return (key & mask(bitIndex)) != 0;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitIndex(Byte key, int offsetInBits, int lengthInBits,
Byte other, int otherOffsetInBits, int otherLengthInBits) {
@@ -101,9 +89,6 @@ public int bitIndex(Byte key, int offsetInBits, int lengthInBits,
return KeyAnalyzer.EQUAL_BIT_KEY;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isPrefix(Byte prefix, int offsetInBits,
int lengthInBits, Byte key) {
@@ -44,26 +44,17 @@
private static int mask(int bit) {
return MSB >>> bit;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitsPerElement() {
return LENGTH;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int lengthInBits(char[] key) {
return (key != null ? key.length * LENGTH : 0);
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitIndex(char[] key, int offsetInBits, int lengthInBits,
char[] other, int otherOffsetInBits, int otherLengthInBits) {
@@ -122,10 +113,7 @@ public int bitIndex(char[] key, int offsetInBits, int lengthInBits,
// Both keys are equal
return KeyAnalyzer.EQUAL_BIT_KEY;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public boolean isBitSet(char[] key, int bitIndex, int lengthInBits) {
if (key == null || bitIndex >= lengthInBits) {
@@ -137,10 +125,7 @@ public boolean isBitSet(char[] key, int bitIndex, int lengthInBits) {
return (key[index] & mask(bit)) != 0;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public boolean isPrefix(char[] prefix, int offsetInBits,
int lengthInBits, char[] key) {
@@ -46,33 +46,21 @@ private static int mask(int bit) {
return MSB >>> bit;
}
- /**
- * {@inheritDoc}
- */
@Override
public int bitsPerElement() {
return 1;
}
- /**
- * {@inheritDoc}
- */
@Override
public int lengthInBits(Character key) {
return LENGTH;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public boolean isBitSet(Character key, int bitIndex, int lengthInBits) {
return (key & mask(bitIndex)) != 0;
}
-
- /**
- * {@inheritDoc}
- */
+
@Override
public int bitIndex(Character key, int offsetInBits, int lengthInBits,
Character other, int otherOffsetInBits, int otherLengthInBits) {
@@ -105,9 +93,6 @@ public int bitIndex(Character key, int offsetInBits, int lengthInBits,
return KeyAnalyzer.EQUAL_BIT_KEY;
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isPrefix(Character prefix, int offsetInBits,
int lengthInBits, Character key) {
Oops, something went wrong.

0 comments on commit 478498d

Please sign in to comment.