Refactored StorageChannel enum into an interface (#3138)

This replaces the static enum with a more dynamic interface providing
factory methods for handling network storage.
This commit is contained in:
yueh
2017-10-08 17:59:30 +02:00
committed by GitHub
parent 8ad8ce68b5
commit 6e81f698c0
115 changed files with 1255 additions and 943 deletions
@@ -19,8 +19,7 @@
package appeng.util.prioritylist;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
import appeng.api.storage.data.IAEStack;
@@ -28,8 +27,6 @@ import appeng.api.storage.data.IAEStack;
public class DefaultPriorityList<T extends IAEStack<T>> implements IPartitionList<T>
{
private static final List NULL_LIST = new ArrayList();
@Override
public boolean isListed( final T input )
{
@@ -45,6 +42,6 @@ public class DefaultPriorityList<T extends IAEStack<T>> implements IPartitionLis
@Override
public Iterable<T> getItems()
{
return NULL_LIST;
return Collections.emptyList();
}
}