Basic reformat, hit once, hope never again
This commit is contained in:
@@ -18,17 +18,19 @@
|
||||
|
||||
package appeng.util.item;
|
||||
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import appeng.api.storage.data.IAEStack;
|
||||
|
||||
|
||||
public class MeaningfulIterator<StackType extends IAEStack> implements Iterator<StackType>
|
||||
{
|
||||
|
||||
private final Iterator<StackType> parent;
|
||||
private StackType next;
|
||||
|
||||
public MeaningfulIterator(Iterator<StackType> iterator)
|
||||
public MeaningfulIterator( Iterator<StackType> iterator )
|
||||
{
|
||||
this.parent = iterator;
|
||||
}
|
||||
@@ -36,10 +38,10 @@ public class MeaningfulIterator<StackType extends IAEStack> implements Iterator<
|
||||
@Override
|
||||
public boolean hasNext()
|
||||
{
|
||||
while (this.parent.hasNext())
|
||||
while( this.parent.hasNext() )
|
||||
{
|
||||
this.next = this.parent.next();
|
||||
if ( this.next.isMeaningful() )
|
||||
if( this.next.isMeaningful() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -63,5 +65,4 @@ public class MeaningfulIterator<StackType extends IAEStack> implements Iterator<
|
||||
{
|
||||
this.parent.remove();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user