org.aksw.commons.collection.observable.ForwardingDeltaCollectionBase Maven / Gradle / Ivy
package org.aksw.commons.collection.observable;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
public abstract class ForwardingDeltaCollectionBase>
extends DeltaCollectionBase>
{
protected C backend;
public ForwardingDeltaCollectionBase(C backend) {
this.backend = backend;
}
public C getBackend() {
return backend;
}
protected boolean isDuplicateAwareBackend() {
return !(backend instanceof Set);
}
@Override
public Iterator iterator() {
return backend.iterator();
}
@Override
public int size() {
return backend.size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy