MCPcopy Index your code
hub / github.com/EdwardRaff/JSAT / put

Method put

JSAT/src/jsat/utils/IntDoubleMap.java:81–89  ·  view source on GitHub ↗
(Integer key, Double value)

Source from the content-addressed store, hash-verified

79 }
80
81 @Override
82 public Double put(Integer key, Double value)
83 {
84 double prev = put(key.intValue(), value.doubleValue());
85 if(Double.isNaN(prev))
86 return null;
87 else
88 return prev;
89 }
90
91 public double put(int key, double value)
92 {

Callers 15

testPut_int_doubleMethod · 0.95
testIncrementMethod · 0.95
testRemove_ObjectMethod · 0.95
testRemove_intMethod · 0.95
testContainsKey_intMethod · 0.95
IntDoubleMapMethod · 0.95
enlargeIfNeededMethod · 0.95
testPut_Long_DoubleMethod · 0.45
assertEntriesAreEqualMethod · 0.45
testPut_long_doubleMethod · 0.45

Calls 2

getIndexMethod · 0.95
enlargeIfNeededMethod · 0.95

Tested by 15

testPut_int_doubleMethod · 0.76
testIncrementMethod · 0.76
testRemove_ObjectMethod · 0.76
testRemove_intMethod · 0.76
testContainsKey_intMethod · 0.76
testPut_Long_DoubleMethod · 0.36
assertEntriesAreEqualMethod · 0.36
testPut_long_doubleMethod · 0.36
testIncrementMethod · 0.36
testRemove_ObjectMethod · 0.36