Applied-Energistics-2-tiler.../util/ReadOnlyCollection.java
2013-12-27 16:59:59 -06:00

41 lines
609 B
Java

package appeng.util;
import java.util.Collection;
import java.util.Iterator;
import appeng.api.util.IReadOnlyCollection;
public class ReadOnlyCollection<T> implements IReadOnlyCollection<T>
{
private final Collection<T> c;
public ReadOnlyCollection(Collection<T> in) {
c = in;
}
@Override
public Iterator iterator()
{
return c.iterator();
}
@Override
public int size()
{
return c.size();
}
@Override
public boolean isEmpty()
{
return c.isEmpty();
}
@Override
public boolean contains(Object node)
{
return c.contains( node );
}
}