MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / pushHistory

Method pushHistory

platform/java/example/Viewer.java:1155–1168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1153 }
1154
1155 protected void pushHistory() {
1156 if (historyCount > 0 && location.equals(history[historyCount - 1].loc))
1157 {
1158 return;
1159 }
1160
1161 if (historyCount + 1 >= history.length) {
1162 for (int i = 0; i < history.length - 1; i++)
1163 history[i] = history[i + 1];
1164 history[historyCount] = saveMark();
1165 } else {
1166 history[historyCount++] = saveMark();
1167 }
1168 }
1169
1170 protected void pushFuture() {
1171 if (futureCount + 1 >= future.length) {

Callers 2

markMethod · 0.95
popFutureMethod · 0.95

Calls 2

saveMarkMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected