All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aksw.commons.collection.observable.ForwardingDeltaCollectionBase Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
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