com.atlassian.jira.ofbiz
Class FieldMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.atlassian.jira.ofbiz.FieldMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>
@PublicApi
public class FieldMap
- extends HashMap<String,Object>
Convenience class to use for field maps in OfBizDelegator
- Since:
- v4.0
- See Also:
OfBizDelegator
,
Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
FieldMap
public FieldMap()
FieldMap
public FieldMap(String fieldName,
Object fieldValue)
add
public FieldMap add(String key,
Object value)
- Adds the given key-value pair to the Map, and returns
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");
- Parameters:
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
- Returns:
- This FieldMap.
build
public static FieldMap build(String fieldName,
Object fieldValue)
Copyright © 2002-2012 Atlassian. All Rights Reserved.