com.github.atdixon.vroom.swipe.POrderedSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vroom Show documentation
Show all versions of vroom Show documentation
Work immutably, robustly and in a knowledge-oriented way with Entity maps in Java.
The newest version!
package org.pcollections;
import java.util.Collection;
import java.util.LinkedHashSet;
/**
* Like {@link PSet} but preserves insertion order. Persistent equivalent of
* {@link LinkedHashSet}.
*
* @author Tassilo Horn <[email protected]>
*
* @param
*/
public interface POrderedSet extends PSet {
public POrderedSet plus(E e);
public POrderedSet plusAll(Collection extends E> list);
public POrderedSet minus(Object e);
public POrderedSet minusAll(Collection> list);
E get(int index);
int indexOf(Object o);
}