MCPcopy Create free account
hub / github.com/M66B/FairEmail / push

Method push

app/src/main/java/eu/faircode/email/RingBuffer.java:32–39  ·  view source on GitHub ↗
(T item)

Source from the content-addressed store, hash-verified

30 }
31
32 public synchronized void push(T item) {
33 if (count == buffer.length)
34 pop();
35
36 buffer[in] = item;
37 in = (in + 1) % buffer.length;
38 count++;
39 }
40
41 public synchronized T pop() {
42 T item = buffer[out];

Callers 14

prism.jsFile · 0.45
parseOptionsMethod · 0.45
JsonStreamParserMethod · 0.45
RunParserMethod · 0.45
HandleBeginObjectMethod · 0.45
ParseObjectMidMethod · 0.45
ParseEntryMethod · 0.45
ParseEntryMidMethod · 0.45
HandleBeginArrayMethod · 0.45
ParseArrayValueMethod · 0.45
ParseArrayMidMethod · 0.45

Calls 1

popMethod · 0.95

Tested by

no test coverage detected