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

nl.vpro.util.SortedSetSameElementWrapper Maven / Gradle / Ivy

There is a newer version: 5.3.1
Show newest version
package nl.vpro.util;

import java.util.SortedSet;

/**
 * @author Michiel Meeuwissen
 * @since 2.3.1
 */
public abstract class SortedSetSameElementWrapper extends SortedSetElementWrapper {
    public SortedSetSameElementWrapper(SortedSet wrapped) {
        super(wrapped);
    }

    @Override
    protected T find(T element) {
        return element;
    }

    @Override
    public boolean add(T element) {
        return wrapped.add(element);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy