public final class PropertiesExtensions extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
copy(Properties properties,
Set<String> filterKeys) |
static Boolean |
getBooleanOrDefault(Properties properties,
String key,
Boolean defaultValue) |
static Integer |
getIntegerOrDefault(Properties properties,
String key,
Integer defaultValue) |
static Optional<String> |
optional(Properties properties,
String key) |
static String |
required(Properties properties,
String key) |
static Boolean |
toBooleanOrDefault(String s) |
static Integer |
toIntegerOrNull(String s) |
public static Optional<String> optional(Properties properties, String key)
public static String required(Properties properties, String key)
public static Properties copy(Properties properties, Set<String> filterKeys)
public static Integer getIntegerOrDefault(Properties properties, String key, Integer defaultValue)
public static Boolean getBooleanOrDefault(Properties properties, String key, Boolean defaultValue)
Copyright © 2025. All rights reserved.