You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HashMap<String, Object> vars = newHashMap<>(); //Variables to serialize
62
60
vars.put("yourMom", "is heavier than sun...");
@@ -66,15 +64,27 @@ public Class<? extends Random> applicableFor()
66
64
67
65
Serializer.globalVariables.put("parent", "father"); //Setting global variables
68
66
69
-
Serializer.PROTOCOL_REGISTRY.GetProtocolFor(String.class).setActive(false); //Disabling a string protocol. This will force Serializer to serialize string with regular Java Base64 because String implements java.io.Serializable!
doublet = System.nanoTime(); //This will insert an comment Another way to add variable except Map<String, Object> $ is used to obtain value from variable
70
+
System.out.println("Write: " + (t-t0)/1000000);
72
71
73
72
Serializer.PROTOCOL_REGISTRY.setActivityForAll(true); //Enabling all protocols
73
+
t0 = System.nanoTime();
74
74
Scopescope = Serializer.LoadFrom(f); //Loading scope with variables and values from file!
0 commit comments