Added SDSIO and delete to SDS map
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -142,6 +142,11 @@ public class SDSNameMapType extends SDSObject<TreeMap<String, SDSObject<?>>>{
|
|||||||
else value.put(name, sdsObject);
|
else value.put(name, sdsObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void delete(String name)
|
||||||
|
{
|
||||||
|
put(name, null);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getByteLength() {
|
public int getByteLength() {
|
||||||
int length = 4;
|
int length = 4;
|
||||||
@@ -188,4 +193,6 @@ public class SDSNameMapType extends SDSObject<TreeMap<String, SDSObject<?>>>{
|
|||||||
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