MCPcopy Create free account
hub / github.com/buggins/coolreader / diff

Method diff

android/src/org/coolreader/crengine/Properties.java:104–114  ·  view source on GitHub ↗
(Properties oldValue)

Source from the content-addressed store, hash-verified

102 }
103
104 synchronized public Properties diff(Properties oldValue) {
105 Properties res = new Properties();
106 for (Map.Entry<Object, Object> entry : entrySet()) {
107 if (!oldValue.containsKey(entry.getKey())
108 || !eq(entry.getValue(), oldValue.get(entry.getKey()))) {
109 res.setProperty((String) entry.getKey(),
110 (String) entry.getValue());
111 }
112 }
113 return res;
114 }
115
116 @Override
117 synchronized public String getProperty(String name, String defaultValue) {

Callers 3

doneMethod · 0.80
setAppSettingsMethod · 0.80
setSettingsMethod · 0.80

Calls 4

entrySetMethod · 0.95
eqMethod · 0.95
setPropertyMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected