Package dafny
Class DafnyMultiset<T>
java.lang.Object
dafny.DafnyMultiset<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDafnyMultiset(Collection<T> c) DafnyMultiset(List<T> l) DafnyMultiset(Map<T, BigInteger> m) DafnyMultiset(Set<T> s) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TypeDescriptor<DafnyMultiset<? extends T>>_typeDescriptor(TypeDescriptor<T> elementType) intprotected Objectclone()booleanstatic <T> DafnyMultiset<T>difference(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) <U> booleandisjoint(DafnyMultiset<? extends U> other) Elements()static <T> DafnyMultiset<T>empty()booleaninthashCode()static <T> DafnyMultiset<T>intersection(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) booleanisProperSubsetOf(DafnyMultiset other) booleanisSubsetOf(DafnyMultiset other) static <T> BigIntegermultiplicity(DafnyMultiset<? extends T> th, T t) static <T> DafnyMultiset<T>of(T... args) toString()static <T> DafnyMultiset<T>union(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) static <T> DafnyMultiset<T>update(DafnyMultiset<? extends T> th, T t, BigInteger b)
-
Constructor Details
-
DafnyMultiset
public DafnyMultiset() -
DafnyMultiset
-
DafnyMultiset
-
DafnyMultiset
-
DafnyMultiset
-
-
Method Details
-
of
-
empty
-
_typeDescriptor
public static <T> TypeDescriptor<DafnyMultiset<? extends T>> _typeDescriptor(TypeDescriptor<T> elementType) -
cardinality
-
cardinalityInt
public int cardinalityInt() -
isSubsetOf
-
isProperSubsetOf
-
contains
-
disjoint
-
multiplicity
-
update
-
union
public static <T> DafnyMultiset<T> union(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) -
difference
public static <T> DafnyMultiset<T> difference(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) -
intersection
public static <T> DafnyMultiset<T> intersection(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other) -
Elements
-
UniqueElements
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
equals
-
hashCode
public int hashCode() -
toString
-