Added putString to NameMapType

This commit is contained in:
FlareMicrosystems
2023-01-23 23:41:34 -08:00
parent ae55d9ce69
commit 5a82795c77
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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));
} }
} }