public static class ToNative.Aggregate
extends java.lang.Object
| Constructor and Description |
|---|
Aggregate() |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> java.util.List<R> |
GenericToList(dafny.DafnySequence<T> dafnyValues,
java.util.function.Function<T,R> converter) |
static <IN_KEY,IN_VALUE,OUT_KEY,OUT_VALUE> |
GenericToMap(dafny.DafnyMap<IN_KEY,IN_VALUE> dafnyValues,
java.util.function.Function<IN_KEY,OUT_KEY> keyConverter,
java.util.function.Function<IN_VALUE,OUT_VALUE> valueConverter) |
static <T,R> java.util.Set<R> |
GenericToSet(dafny.DafnySet<T> dafnyValues,
java.util.function.Function<T,R> converter) |
public static <T,R> java.util.List<R> GenericToList(dafny.DafnySequence<T> dafnyValues,
java.util.function.Function<T,R> converter)
T - The Dafny Runtime Type.R - The Native Java Type.dafnyValues - The Dafny Runtime Type for a List is a DafnySequence.converter - A Function that converts from a Dafny Runtime Type to a Native Java Type.List of <R>,
which is the result of applying converter to
every member of dafnyValues.ToDafny.Aggregate.GenericToSequence(List, Function, TypeDescriptor)public static <T,R> java.util.Set<R> GenericToSet(dafny.DafnySet<T> dafnyValues,
java.util.function.Function<T,R> converter)
T - The Dafny Runtime Type.R - The Native Java Type.dafnyValues - The Dafny Runtime Type for a Set is a DafnySet.converter - A Function that converts from a Dafny Runtime Type to a Native Java Type.Set of <R>,
which is the result of applying converter to
every member of dafnyValues.ToDafny.Aggregate.GenericToSet(Set, Function)public static <IN_KEY,IN_VALUE,OUT_KEY,OUT_VALUE> java.util.Map<OUT_KEY,OUT_VALUE> GenericToMap(dafny.DafnyMap<IN_KEY,IN_VALUE> dafnyValues,
java.util.function.Function<IN_KEY,OUT_KEY> keyConverter,
java.util.function.Function<IN_VALUE,OUT_VALUE> valueConverter)
IN_KEY - The Dafny Runtime Type for the Key.IN_VALUE - The Dafny Runtime Type for the Value.OUT_KEY - The Native Java Type for the Key.OUT_VALUE - The Native Java Type for the Value.dafnyValues - The Dafny Runtime type for a map can be DafnyMap.keyConverter - A Function that converts Dafny Runtime Type for the Key to a Native Java Type.valueConverter - A Function that converts Dafny Runtime Type for the Value to a Native Java Type.Map of <OUT_KEY, OUT_VALUE>,
which is the result of applying keyConverter and valueConverter to
every member of dafnyValues.ToDafny.Aggregate.GenericToMap(Map, Function, Function)