public Map<String, Object> getMap() { Map<String, Object> m = new HashMap<>(); for (Entry<SimpleString, PropertyValue> entry : properties.entrySet()) { Object val = entry.getValue().getValue(); if (val instanceof SimpleString) { m.put(entry.getKey().toString(), ((SimpleString) val).toString()); } else { m.put(entry.getKey().toString(), val); } } return m; }
Object theValue = iterItem.getValue().getValue();
private synchronized Object doGetProperty(final Object key) { if (size == 0) { return null; } PropertyValue val = properties.get(key); if (val == null) { return null; } else { return val.getValue(); } }
private synchronized Object doGetProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.get(key); if (val == null) { return null; } else { return val.getValue(); } }
public synchronized void forEach(BiConsumer<SimpleString, Object> action) { if (properties != null) { properties.forEach((k, v) -> action.accept(k, v.getValue())); } }
private synchronized Object doRemoveProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.remove(key); if (val == null) { return null; } else { size -= SimpleString.sizeofString(key) + val.encodeSize(); return val.getValue(); } }
@Override public String toString() { return "" + getValue(); } }
private synchronized Object doGetProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.get(key); if (val == null) { return null; } else { return val.getValue(); } }
private synchronized Object doRemoveProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.remove(key); if (val == null) { return null; } else { size -= SimpleString.sizeofString(key) + val.encodeSize(); return val.getValue(); } }
private synchronized Object doGetProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.get(key); if (val == null) { return null; } else { return val.getValue(); } }
private synchronized Object doRemoveProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.remove(key); if (val == null) { return null; } else { size -= SimpleString.sizeofString(key) + val.encodeSize(); return val.getValue(); } }
@Override public String toString() { return "" + getValue(); } }
public synchronized void forEach(BiConsumer<SimpleString, Object> action) { if (properties != null) { properties.forEach((k, v) -> action.accept(k, v.getValue())); } }
public synchronized void forEach(BiConsumer<SimpleString, Object> action) { if (properties != null) { properties.forEach((k, v) -> action.accept(k, v.getValue())); } }
@Override public String toString() { return "" + getValue(); } }
public synchronized void forEach(BiConsumer<SimpleString, Object> action) { if (properties != null) { properties.forEach((k, v) -> action.accept(k, v.getValue())); } }
public synchronized void forEach(BiConsumer<SimpleString, Object> action) { if (properties != null) { properties.forEach((k, v) -> action.accept(k, v.getValue())); } }
private synchronized Object doRemoveProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.remove(key); if (val == null) { return null; } else { size -= SimpleString.sizeofString(key) + val.encodeSize(); return val.getValue(); } }
@Override public String toString() { return "" + getValue(); } }
private synchronized Object doRemoveProperty(final SimpleString key) { if (properties == null) { return null; } PropertyValue val = properties.remove(key); if (val == null) { return null; } else { size -= SimpleString.sizeofString(key) + val.encodeSize(); return val.getValue(); } }