MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / isPeristant

Method isPeristant

src/main/java/fieldbox/io/IO.java:144–154  ·  view source on GitHub ↗
(Dict.Prop prop)

Source from the content-addressed store, hash-verified

142
143 static public void persist(Dict.Prop prop) {
144 knownProperties.add(prop.getName());
145 }
146
147 public static boolean isPeristant(Dict.Prop prop) {
148 return knownFiles.containsKey(prop.getName()) || knownProperties.contains(prop.getName()) || (prop.findCanon() != null && prop.findCanon()
149 .getAttributes()
150 .isTrue(persistent, false));
151 }
152
153 public static Runnable uniqify(Box x) {
154 ArrayList<Dict.Prop> k = new ArrayList<>(x.properties.getMap()
155 .keySet());
156
157 List<Runnable> undo = new LinkedList<>();

Callers 3

duplicateBoxMethod · 0.95
_saveBoxMethod · 0.95
writeOutExternalMethod · 0.95

Calls 6

isTrueMethod · 0.80
getAttributesMethod · 0.80
getNameMethod · 0.45
containsKeyMethod · 0.45
containsMethod · 0.45
findCanonMethod · 0.45

Tested by

no test coverage detected