@PublicApi public class FieldMap extends HashMap<String,Object>
OfBizDelegator
OfBizDelegator
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
FieldMap() |
FieldMap(Map<String,?> initialCapacity) |
FieldMap(String fieldName,
Object fieldValue) |
Modifier and Type | Method and Description |
---|---|
FieldMap |
add(String key,
Object value)
Adds the given key-value pair to the Map, and returns
this in order to allow fluent syntax. |
FieldMap |
addAll(Map<String,?> map)
Adds all of the key-value pairs from the supplied map to this Map and returns
this in order to allow fluent syntax. |
static FieldMap |
build(String fieldName,
Object fieldValue) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5,
String name6,
Object value6) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5,
String name6,
Object value6,
String name7,
Object value7) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5,
String name6,
Object value6,
String name7,
Object value7,
String name8,
Object value8) |
static FieldMap |
build(String name1,
Object value1,
String name2,
Object value2,
String name3,
Object value3,
String name4,
Object value4,
String name5,
Object value5,
String name6,
Object value6,
String name7,
Object value7,
String name8,
Object value8,
String name9,
Object value9) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public FieldMap add(String key, Object value)
this
in order to allow fluent syntax.
This method allows you to write code like the following:
FieldMap fieldMap = new FieldMap("id", 12L).add("name", "Fred");
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.public FieldMap addAll(Map<String,?> map)
this
in order to allow fluent syntax.
This method allows you to write code like the following:
FieldMap defaults = new FieldMap("name", "Fred").add("description", "Fred's stuff");
FieldMap fieldMap = new FieldMap("id", 12L).addAll(defaults);
map
- the map of values to addpublic static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3)
public static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4)
public static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5)
public static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6)
public static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7)
public static FieldMap build(String name1, Object value1, String name2, Object value2, String name3, Object value3, String name4, Object value4, String name5, Object value5, String name6, Object value6, String name7, Object value7, String name8, Object value8)
Copyright © 2002-2017 Atlassian. All Rights Reserved.