MCPcopy Create free account
hub / github.com/apache/poi / getKeyForValue

Method getKeyForValue

src/java/org/apache/poi/util/BinaryTree.java:153–157  ·  view source on GitHub ↗

Returns the key to which this map maps the specified value. Returns null if the map contains no mapping for this value. @param value value whose associated key is to be returned. @return the key to which this map maps the specified value, or null if the map contains no mapping for this val

(Object value)

Source from the content-addressed store, hash-verified

151 * @exception NullPointerException if the value is null
152 */
153 public Object getKeyForValue(Object value)
154 throws ClassCastException, NullPointerException
155 {
156 return doGet(( Comparable ) value, _VALUE);
157 }
158
159 /**
160 * Removes the mapping for this value from this map if present

Callers 2

testGetKeyForValueMethod · 0.95
testRemoveValueMethod · 0.95

Calls 1

doGetMethod · 0.95

Tested by 2

testGetKeyForValueMethod · 0.76
testRemoveValueMethod · 0.76