public class GwtCreateMap extends Object implements Serializable
Each map typically contains the answers for one (soft) permutation.
Constructor and Description |
---|
GwtCreateMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Returns true if the map contains a answer for the given GWT.create() argument.
|
String |
get(String key)
Returns the Java class that a GWT.create() call will construct.
|
static Map<String,List<Integer>> |
getAnswerPermutations(List<GwtCreateMap> maps,
String key)
Given an argument to GWT.create(), returns a map containing each possible return type and the
permutations that would create it.
|
static GwtCreateMap |
getCommonAnswers(Iterable<GwtCreateMap> maps)
Returns the answers that are the same in every permutation.
|
static SortedMap<String,SortedSet<String>> |
getPossibleAnswers(Iterable<GwtCreateMap> maps,
Set<String> keysWanted)
Returns the Java classes that GWT.create() might return in at least one permutation.
|
public String get(String key)
key
- the GWT.create() argument (source type name)public boolean containsKey(String key)
public static GwtCreateMap getCommonAnswers(Iterable<GwtCreateMap> maps)
public static SortedMap<String,SortedSet<String>> getPossibleAnswers(Iterable<GwtCreateMap> maps, Set<String> keysWanted)
keysWanted
- the GWT.create() arguments to include (source type names).public static Map<String,List<Integer>> getAnswerPermutations(List<GwtCreateMap> maps, String key)
Copyright © 2018. All rights reserved.