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,39 +18,32 @@
package appeng.util.iterators;
import java.util.Iterator;
import appeng.api.networking.IGridHost;
import appeng.api.networking.IGridNode;
import appeng.api.util.AEPartLocation;
public final class ProxyNodeIterator implements Iterator<IGridNode> {
private final Iterator<IGridHost> hosts;
public final class ProxyNodeIterator implements Iterator<IGridNode>
{
private final Iterator<IGridHost> hosts;
public ProxyNodeIterator(final Iterator<IGridHost> hosts) {
this.hosts = hosts;
}
public ProxyNodeIterator( final Iterator<IGridHost> hosts )
{
this.hosts = hosts;
}
@Override
public boolean hasNext() {
return this.hosts.hasNext();
}
@Override
public boolean hasNext()
{
return this.hosts.hasNext();
}
@Override
public IGridNode next() {
final IGridHost host = this.hosts.next();
return host.getGridNode(AEPartLocation.INTERNAL);
}
@Override
public IGridNode next()
{
final IGridHost host = this.hosts.next();
return host.getGridNode( AEPartLocation.INTERNAL );
}
@Override
public void remove()
{
throw new UnsupportedOperationException();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}