Skip to main content

[multilib~subversion:56] Added set() methods to simplelibrary.config2.Config; function is same as

  • From:
  • To:
  • Subject: [multilib~subversion:56] Added set() methods to simplelibrary.config2.Config; function is same as
  • Date: Tue, 15 Apr 2014 17:55:46 +0000

Project:    multilib
Repository: subversion
Revision:   56
Author:     superinventor
Date:       2014-04-15 17:55:40 UTC
Link:       

Log Message:
------------
Added set() methods to simplelibrary.config2.Config; function is same as the 
setProperty() methods


Revisions:
----------
56


Modified Paths:
---------------
simplelibrary/config2/Config.java


Diffs:
------
Index: simplelibrary/config2/Config.java
===================================================================
--- simplelibrary/config2/Config.java   (revision 55)
+++ simplelibrary/config2/Config.java   (revision 56)
@@ -214,4 +214,20 @@
     public void setProperty(String key, float value){
         data.put(key, new ConfigFloat(key, value));
     }
+    public void set(String key, Config value){
+        value.setName(key);
+        data.put(key, value);
+    }
+    public void set(String key, String value){
+        data.put(key, new ConfigString(key, value));
+    }
+    public void set(String key, int value){
+        data.put(key, new ConfigInteger(key, value));
+    }
+    public void set(String key, boolean value){
+        data.put(key, new ConfigBoolean(key, value));
+    }
+    public void set(String key, float value){
+        data.put(key, new ConfigFloat(key, value));
+    }
 }





[multilib~subversion:56] Added set() methods to simplelibrary.config2.Config; function is same as

superinventor 04/15/2014
 
 
Close
loading
Please Confirm
Close