if (next != null)
return true;
- return spliterator.tryAdvance(new Consumer<Object>()
- {
- @Override
- public void accept(Object o)
- {
- next = o;
- }
- });
+ return spliterator.tryAdvance((Object o) -> { next = o; });
}
@Override
if (next != null)
return true;
- return spliterator.tryAdvance(new Consumer<Entry<String, Object>>()
- {
- @Override
- public void accept(Entry<String, Object> e)
- {
- next = e;
- }
- });
+ return spliterator.tryAdvance((Entry<String, Object> e) -> { next = e; });
}
@Override