public class DafnyMultiset<T>
extends java.lang.Object
| Constructor and Description |
|---|
DafnyMultiset() |
DafnyMultiset(java.util.Collection<T> c) |
DafnyMultiset(java.util.List<T> l) |
DafnyMultiset(java.util.Map<T,java.math.BigInteger> m) |
DafnyMultiset(java.util.Set<T> s) |
| Modifier and Type | Method and Description |
|---|---|
static <T> TypeDescriptor<DafnyMultiset<? extends T>> |
_typeDescriptor(TypeDescriptor<T> elementType) |
java.math.BigInteger |
cardinality() |
int |
cardinalityInt() |
protected java.lang.Object |
clone() |
boolean |
contains(java.lang.Object t) |
static <T> DafnyMultiset<T> |
difference(DafnyMultiset<? extends T> th,
DafnyMultiset<? extends T> other) |
<U> boolean |
disjoint(DafnyMultiset<? extends U> other) |
java.lang.Iterable<T> |
Elements() |
static <T> DafnyMultiset<T> |
empty() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static <T> DafnyMultiset<T> |
intersection(DafnyMultiset<? extends T> th,
DafnyMultiset<? extends T> other) |
boolean |
isProperSubsetOf(DafnyMultiset other) |
boolean |
isSubsetOf(DafnyMultiset other) |
static <T> java.math.BigInteger |
multiplicity(DafnyMultiset<? extends T> th,
T t) |
static <T> DafnyMultiset<T> |
of(T... args) |
java.lang.String |
toString() |
static <T> DafnyMultiset<T> |
union(DafnyMultiset<? extends T> th,
DafnyMultiset<? extends T> other) |
java.lang.Iterable<T> |
UniqueElements() |
static <T> DafnyMultiset<T> |
update(DafnyMultiset<? extends T> th,
T t,
java.math.BigInteger b) |
public DafnyMultiset()
public DafnyMultiset(java.util.Map<T,java.math.BigInteger> m)
public DafnyMultiset(java.util.Set<T> s)
public DafnyMultiset(java.util.Collection<T> c)
public DafnyMultiset(java.util.List<T> l)
@SafeVarargs public static <T> DafnyMultiset<T> of(T... args)
public static <T> DafnyMultiset<T> empty()
public static <T> TypeDescriptor<DafnyMultiset<? extends T>> _typeDescriptor(TypeDescriptor<T> elementType)
public java.math.BigInteger cardinality()
public int cardinalityInt()
public boolean isSubsetOf(DafnyMultiset other)
public boolean isProperSubsetOf(DafnyMultiset other)
public boolean contains(java.lang.Object t)
public <U> boolean disjoint(DafnyMultiset<? extends U> other)
public static <T> java.math.BigInteger multiplicity(DafnyMultiset<? extends T> th, T t)
public static <T> DafnyMultiset<T> update(DafnyMultiset<? extends T> th, T t, java.math.BigInteger b)
public static <T> DafnyMultiset<T> union(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other)
public static <T> DafnyMultiset<T> difference(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other)
public static <T> DafnyMultiset<T> intersection(DafnyMultiset<? extends T> th, DafnyMultiset<? extends T> other)
public java.lang.Iterable<T> Elements()
public java.lang.Iterable<T> UniqueElements()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic 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.Object