MCPcopy
hub / github.com/cinit/QAuxiliary / set

Method set

app/src/main/java/cc/ioctl/util/data/Table.java:401–413  ·  view source on GitHub ↗
(K key, String field, Serializable val)

Source from the content-addressed store, hash-verified

399 }
400
401 public void set(K key, String field, Serializable val) throws NoSuchFieldException {
402 synchronized (this) {
403 int i = getFieldId(field);
404 if (i < 0) {
405 throw new NoSuchFieldException(field);
406 }
407 if (!hasRecord(key)) {
408 throw new NoSuchElementException("key:" + key);
409 }
410
411 records.get(key)[i] = val;
412 }
413 }
414
415 public void insert(K key) {
416 synchronized (this) {

Callers 15

saveFriendsDataMethod · 0.95
saveEventsDataMethod · 0.95
beforeHookedMethodMethod · 0.45
afterHookedMethodMethod · 0.45
fromGetFriendListRespMethod · 0.45
initForStubActivityMethod · 0.45
bypassStateLossCheckMethod · 0.45
onResumeMethod · 0.45
setObjectFieldMethod · 0.45

Calls 3

getFieldIdMethod · 0.95
hasRecordMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected