MCPcopy Create free account
hub / github.com/FTCLib/FTCLib / add

Method add

core/src/main/java/com/arcrobotics/ftclib/util/LUT.java:11–13  ·  view source on GitHub ↗
(T key, R out)

Source from the content-addressed store, hash-verified

9public class LUT<T extends Number, R> extends TreeMap<T, R> {
10
11 public void add(T key, R out) {
12 put(key, out);
13 }
14
15 /**
16 * Returns the closest possible value for the given key.

Callers 15

getClosestMethod · 0.95
testReachesReferenceMethod · 0.45
testAddDuplicateMethod · 0.45
testCreateLUTMethod · 0.45
testGetMethod · 0.45
testLargeCaseMethod · 0.45
setFunction · 0.45
addCommandsMethod · 0.45
addWaypointMethod · 0.45
addCommandsMethod · 0.45
addButtonMethod · 0.45
onCommandInitializeMethod · 0.45

Calls

no outgoing calls

Tested by 6

getClosestMethod · 0.76
testReachesReferenceMethod · 0.36
testAddDuplicateMethod · 0.36
testCreateLUTMethod · 0.36
testGetMethod · 0.36
testLargeCaseMethod · 0.36