/*
 * @author Ranides Atterwim {@literal <ranides@gmail.com>}
 * @copyright Ranides Atterwim
 * @license WTFPL
 * @url http://ranides.net/projects/assira
 */
package net.ranides.assira.collection.sets;

import java.util.List;
import java.util.Set;
import java.util.Spliterator;

/**
 * This interface represents a list which preserves the order of elements
 * and offers fast {@link #contains(Object)} method
 *
 * @param <T> T
 * @author Ranides Atterwim {@literal <ranides@gmail.com>}
 */
public interface OrderedSet<T> extends Set<T>, List<T> {

    @Override
    default Spliterator<T> spliterator() {
        return List.super.spliterator();
    }

}
