pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
@@ -18,38 +18,31 @@
package appeng.util.iterators;
import java.util.Iterator;
public final class ChainedIterator<T> implements Iterator<T> {
private final T[] list;
public final class ChainedIterator<T> implements Iterator<T>
{
private final T[] list;
private int offset = 0;
private int offset = 0;
public ChainedIterator(final T... list) {
this.list = list;
}
public ChainedIterator( final T... list )
{
this.list = list;
}
@Override
public boolean hasNext() {
return this.offset < this.list.length;
}
@Override
public boolean hasNext()
{
return this.offset < this.list.length;
}
@Override
public T next() {
final T result = this.list[this.offset];
this.offset++;
return result;
}
@Override
public T next()
{
final T result = this.list[this.offset];
this.offset++;
return result;
}
@Override
public void remove()
{
throw new UnsupportedOperationException();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}