|
|
@@ -274,7 +274,7 @@ public abstract class IntSortedMap<V> extends IntMap<V> implements SortedMap<Int
|
|
|
|
|
|
@Override
|
|
|
public IntIterator iterator(int from) {
|
|
|
- return new KeySetIterator<>(entrySet().iterator(new BasicEntry<V>(from, null)));
|
|
|
+ return new KeySetIterator<>(entrySet().iterator(new BasicEntry<>(from, null)));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -398,12 +398,7 @@ public abstract class IntSortedMap<V> extends IntMap<V> implements SortedMap<Int
|
|
|
protected class EntrySet extends ASortedSet<IntEntry<V>> {
|
|
|
|
|
|
public EntrySet() {
|
|
|
- super(new Comparator<IntEntry<V>>() {
|
|
|
- @Override
|
|
|
- public int compare(IntEntry<V> entry1, IntEntry<V> entry2) {
|
|
|
- return IntSortedMap.this.compare(entry1.getIntKey(), entry2.getIntKey());
|
|
|
- }
|
|
|
- });
|
|
|
+ super((entry1, entry2) -> IntSortedMap.this.compare(entry1.getIntKey(), entry2.getIntKey()));
|
|
|
}
|
|
|
|
|
|
@Override
|