/** * Adds an entry to this map. * * @param k The key. * @param v The value. * @return This object (for method chaining). */ public AMap<K,V> append(K k, V v) { put(k, v); return this; } }
/** * Creates an empty map. * * @return A new empty map. */ public static <K,V> AMap<K,V> create() { return new AMap<>(); }
o = AMap.create(1, "foo"); assertEquals("foo", session.convertToType(o, TreeMap.class).firstEntry().getValue());
/** * Creates an empty map. * * @return A new empty map. */ public static <K,V> AMap<K,V> create() { return new AMap<>(); }
/** * Creates an empty map. * * @return A new empty map. */ public static <K,V> AMap<K,V> create() { return new AMap<>(); }
/** * Adds an entry to this map. * * @param k The key. * @param v The value. * @return This object (for method chaining). */ public AMap<K,V> append(K k, V v) { put(k, v); return this; } }
@Override /* MenuItemWidget */ public Div getContent(RestRequest req) throws Exception { Div div = div(); for (String s : BUILT_IN_STYLES) { java.net.URI uri = req.getUri(true, new AMap<String,String>().append("stylesheet", "htdocs/themes/"+s+".css")); div.children(a(uri, s), br()); } return div; } }
/** * Adds an entry to this map. * * @param k The key. * @param v The value. * @return This object (for method chaining). */ public AMap<K,V> append(K k, V v) { put(k, v); return this; } }
@Override /* MenuItemWidget */ public Div getContent(RestRequest req) throws Exception { Div div = div(); for (String s : BUILT_IN_STYLES) { java.net.URI uri = req.getUri(true, new AMap<String,String>().append("stylesheet", "htdocs/themes/"+s+".css")); div.children(a(uri, s), br()); } return div; } }
@Override /* MenuItemWidget */ public Div getContent(RestRequest req) throws Exception { Div div = div(); for (String s : BUILT_IN_STYLES) { java.net.URI uri = req.getUri(true, new AMap<String,String>().append("stylesheet", "htdocs/themes/"+s+".css")); div.children(a(uri, s), br()); } return div; } }