stonehorse.grit.set.EphemeralSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grit Show documentation
Show all versions of grit Show documentation
Persistent Collections for Java. Immutable
containers with mutation as expression
The newest version!
package stonehorse.grit.set;
import stonehorse.grit.PersistentSet;
public interface EphemeralSet {
PersistentSet persistent();
EphemeralSet ifMissing(T t);
EphemeralSet with(T t);
EphemeralSet without(T t);
EphemeralSet difference(Iterable super T> iterable);
EphemeralSet union(Iterable extends T> iterable);
int size();
boolean isEmpty();
}