
com.artclod.common.collect.builder.GuavaImFSetBuilder Maven / Gradle / Ivy
package com.artclod.common.collect.builder;
import java.util.Collection;
import java.util.Iterator;
import com.artclod.common.collect.GuavaImFSet;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSet.Builder;
public class GuavaImFSetBuilder implements CollectionBuilder> {
private Builder inner;
public GuavaImFSetBuilder(ImmutableSet.Builder inner) {
this.inner = inner;
}
@Override
public GuavaImFSet build() {
return new GuavaImFSet(inner.build());
}
@Override
public int size() {
throw new UnsupportedOperationException();
}
@Override
public boolean isEmpty() {
throw new UnsupportedOperationException();
}
@Override
public boolean contains(Object o) {
throw new UnsupportedOperationException();
}
@Override
public Iterator iterator() {
throw new UnsupportedOperationException();
}
@Override
public Object[] toArray() {
throw new UnsupportedOperationException();
}
@Override
public T[] toArray(T[] a) {
throw new UnsupportedOperationException();
}
@Override
public boolean add(E e) {
inner.add(e);
return true;
}
@Override
public boolean remove(Object o) {
throw new UnsupportedOperationException();
}
@Override
public boolean containsAll(Collection> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean addAll(Collection extends E> c) {
inner.addAll(c);
return false;
}
@Override
public boolean removeAll(Collection> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean retainAll(Collection> c) {
throw new UnsupportedOperationException();
}
@Override
public void clear() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy