/** * Put a map of (key, value) pair into the store. The value could be any type * that supported by {@link ValueObject} * @param kvMap a map of {key, value} pair */ @Override public KVStore putValues(Map<String, Object> kvMap) { for (String key : kvMap.keySet()) { put(key, ValueObject.of(kvMap.get(key))); } return this; }
/** * Put a map of (key, value) pair into the store. The value could be any type * that supported by {@link ValueObject} * @param kvMap a map of {key, value} pair */ @Override public KVStore putValues(Map<String, Object> kvMap) { for (String key : kvMap.keySet()) { put(key, ValueObject.of(kvMap.get(key))); } return this; }
/** * Put a simple data into the store with a key. The type of simple data * should be allowed by {@link ValueObject} * @param key the key * @param val the value * @return this store instance after the put operation finished * @see ValueObject */ @Override public KVStore putValue(String key, Object val) { put(key, ValueObject.of(val)); return this; }
/** * Put a simple data into the store with a key. The type of simple data * should be allowed by {@link ValueObject} * @param key the key * @param val the value * @return this store instance after the put operation finished * @see ValueObject */ @Override public KVStore putValue(String key, Object val) { put(key, ValueObject.of(val)); return this; }