Files
elink-online-common/src/main/java/com/eactive/eai/util/PropertiesUtil.java
T
Rinjae aacc1a389e init
2025-09-05 18:57:45 +09:00

20 lines
581 B
Java

package com.eactive.eai.util;
import java.util.Properties;
public class PropertiesUtil {
/**
* Copies a property from source to destination if the key exists in source.
*
* @param source The source properties.
* @param destination The destination properties.
* @param key The key to check and copy.
*/
public static void copyPropertyIfPresent(Properties source, Properties destination, Object key) {
Object value = source.get(key);
if (value != null) {
destination.put(key, value);
}
}
}