diff options
author | Michael Bien <[email protected]> | 2011-02-26 17:59:27 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-02-26 17:59:27 +0100 |
commit | be26200a6d2fbeff6df49aada0bcf7cad91fe64f (patch) | |
tree | d058fe9abcb2388cd480a16d95adb167f52284e1 /src/java/com/jogamp/common/util/IntIntHashMap.java | |
parent | a1c22f48aef28165b0112e3bab223fe5ea2fa4fd (diff) |
small cleanup in uitl package
- StringBuffer -> StringBuilder
- ReflectionUtil.getBaseName -> class.getSimpleName()
- cleanup imports, generics and @Override for all touched classes
Diffstat (limited to 'src/java/com/jogamp/common/util/IntIntHashMap.java')
-rw-r--r-- | src/java/com/jogamp/common/util/IntIntHashMap.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/com/jogamp/common/util/IntIntHashMap.java b/src/java/com/jogamp/common/util/IntIntHashMap.java index e18468b..f449a95 100644 --- a/src/java/com/jogamp/common/util/IntIntHashMap.java +++ b/src/java/com/jogamp/common/util/IntIntHashMap.java @@ -235,8 +235,8 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { * Returns a new {@link Iterator}. * Note: this Iterator does not yet support removal of elements. */ -// @Override - public Iterator/*<Entry>*/ iterator() { + @Override + public Iterator<Entry> iterator() { return new EntryIterator(table); } @@ -264,7 +264,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { return keyNotFoundValue; } -// @Override + @Override public String toString() { // TODO use StringBuilder as soon we are at language level 5 String str = "{"; @@ -279,7 +279,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { return str; } - private final static class EntryIterator implements Iterator/*<Entry>*/ { + private final static class EntryIterator implements Iterator<Entry> { private final Entry[] entries; @@ -292,13 +292,13 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { next(); } -// @Override + @Override public boolean hasNext() { return next != null; } -// @Override - public Object next() { + @Override + public Entry next() { Entry current = next; if(current != null && current.next != null) { @@ -317,7 +317,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { return current; } -// @Override + @Override public void remove() { throw new UnsupportedOperationException("Not supported yet."); } @@ -361,7 +361,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Iterable { this.value = value; } -// @Override + @Override public String toString() { return "["+key+":"+value+"]"; } |