public class DafnySet<T>
extends java.lang.Object
| Constructor and Description |
|---|
DafnySet() |
DafnySet(java.util.Collection<T> c) |
DafnySet(DafnySet<T> other) |
DafnySet(java.util.List<T> l) |
DafnySet(java.util.Set<T> s) |
| Modifier and Type | Method and Description |
|---|---|
static <T> TypeDescriptor<DafnySet<? extends T>> |
_typeDescriptor(TypeDescriptor<T> elementType) |
boolean |
add(T t) |
boolean |
addAll(DafnySet<T> other) |
java.util.Collection<DafnySet<T>> |
AllSubsets() |
DafnyMultiset<T> |
asDafnyMultiset() |
int |
cardinalityInt() |
boolean |
contains(java.lang.Object t) |
boolean |
containsAll(DafnySet other) |
static <T> DafnySet<T> |
difference(DafnySet<? extends T> th,
DafnySet<? extends T> other) |
<U> boolean |
disjoint(DafnySet<? extends U> other) |
java.util.Set<T> |
Elements() |
static <T> DafnySet<T> |
empty() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static <T> DafnySet<T> |
intersection(DafnySet<? extends T> th,
DafnySet<? extends T> other) |
boolean |
isEmpty() |
boolean |
isProperSubsetOf(DafnySet other) |
boolean |
isSubsetOf(DafnySet other) |
static <T> DafnySet<T> |
of(T... elements) |
boolean |
remove(T t) |
boolean |
removeAll(DafnySet<T> other) |
int |
size() |
java.lang.String |
toString() |
static <T> DafnySet<T> |
union(DafnySet<? extends T> th,
DafnySet<? extends T> other) |
public DafnySet()
public DafnySet(java.util.Set<T> s)
public DafnySet(java.util.Collection<T> c)
public DafnySet(java.util.List<T> l)
@SafeVarargs public static <T> DafnySet<T> of(T... elements)
public static <T> DafnySet<T> empty()
public static <T> TypeDescriptor<DafnySet<? extends T>> _typeDescriptor(TypeDescriptor<T> elementType)
public boolean isSubsetOf(DafnySet other)
public boolean isProperSubsetOf(DafnySet other)
public boolean contains(java.lang.Object t)
public <U> boolean disjoint(DafnySet<? extends U> other)
public static <T> DafnySet<T> difference(DafnySet<? extends T> th, DafnySet<? extends T> other)
public static <T> DafnySet<T> intersection(DafnySet<? extends T> th, DafnySet<? extends T> other)
public boolean containsAll(DafnySet other)
public int size()
public int cardinalityInt()
public boolean isEmpty()
public boolean add(T t)
public boolean remove(T t)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic DafnyMultiset<T> asDafnyMultiset()
public java.util.Set<T> Elements()