Added putString to NameMapType
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
/bin
|
||||||
@@ -189,10 +189,14 @@ public class SDSNameMapType extends SDSObject<TreeMap<String, SDSObject<?>>>{
|
|||||||
public void putDouble(String name, double val) {
|
public void putDouble(String name, double val) {
|
||||||
this.put(name, new SDSDoubleType(val));
|
this.put(name, new SDSDoubleType(val));
|
||||||
}
|
}
|
||||||
|
public void putString(String name, String val) {
|
||||||
|
this.put(name, new SDSStringType(val));
|
||||||
|
}
|
||||||
|
|
||||||
public boolean hasOfType(String name, Class<?> tester) {
|
public boolean hasOfType(String name, Class<?> tester) {
|
||||||
return this.value.containsKey(name) && tester.isInstance(this.value.get(name));
|
return this.value.containsKey(name) && tester.isInstance(this.value.get(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user