Package com.github.weisj.darklaf
Class PropertyLoader
- java.lang.Object
-
- com.github.weisj.darklaf.PropertyLoader
-
public final class PropertyLoader extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyLoader.ReferenceInfo<T>
-
Constructor Summary
Constructors Constructor Description PropertyLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringasKey(String key)static StringgetReferencePrefix()static booleanisDebugMode()static PropertiesloadProperties(Class<?> clazz, String name, String path)static ObjectparseValue(String propertyKey, String val, Map<Object,Object> accumulator, Map<Object,Object> currentDefaults, IconLoader iconLoader)static voidputProperties(Map<Object,Object> properties, Set<String> keys, Map<Object,Object> accumulator, UIDefaults currentDefaults, IconLoader iconLoader)static voidputProperties(Properties properties, Properties accumulator, UIDefaults currentDefaults)static voidputProperties(Properties properties, Properties accumulator, UIDefaults currentDefaults, IconLoader iconLoader)static voidputProperties(Properties properties, UIDefaults defaults)static voidputProperties(Properties properties, UIDefaults defaults, IconLoader iconLoader)static voidreplaceProperties(Map<Object,Object> properties, Predicate<Map.Entry<Object,Object>> predicate, Function<Map.Entry<Object,Object>,Object> mapper)static <T> voidreplacePropertiesOfType(Class<T> type, Map<Object,Object> properties, Function<T,T> mapper)static <T> voidreplacePropertiesOfType(Class<T> type, Map<Object,Object> properties, Predicate<Map.Entry<Object,T>> predicate, Function<T,T> mapper)static <T> voidreplacePropertyEntriesOfType(Class<T> type, Map<Object,Object> properties, Predicate<Map.Entry<Object,T>> predicate, Function<Map.Entry<Object,T>,T> mapper)static voidsetDebugMode(boolean debugMode)static ObjectunpackReference(Object object)
-
-
-
Method Detail
-
setDebugMode
public static void setDebugMode(boolean debugMode)
-
isDebugMode
public static boolean isDebugMode()
-
loadProperties
public static Properties loadProperties(Class<?> clazz, String name, String path)
-
putProperties
public static void putProperties(Properties properties, Properties accumulator, UIDefaults currentDefaults)
-
putProperties
public static void putProperties(Properties properties, Properties accumulator, UIDefaults currentDefaults, IconLoader iconLoader)
-
putProperties
public static void putProperties(Properties properties, UIDefaults defaults)
-
putProperties
public static void putProperties(Properties properties, UIDefaults defaults, IconLoader iconLoader)
-
putProperties
public static void putProperties(Map<Object,Object> properties, Set<String> keys, Map<Object,Object> accumulator, UIDefaults currentDefaults, IconLoader iconLoader)
-
replaceProperties
public static void replaceProperties(Map<Object,Object> properties, Predicate<Map.Entry<Object,Object>> predicate, Function<Map.Entry<Object,Object>,Object> mapper)
-
replacePropertiesOfType
public static <T> void replacePropertiesOfType(Class<T> type, Map<Object,Object> properties, Function<T,T> mapper)
-
replacePropertiesOfType
public static <T> void replacePropertiesOfType(Class<T> type, Map<Object,Object> properties, Predicate<Map.Entry<Object,T>> predicate, Function<T,T> mapper)
-
replacePropertyEntriesOfType
public static <T> void replacePropertyEntriesOfType(Class<T> type, Map<Object,Object> properties, Predicate<Map.Entry<Object,T>> predicate, Function<Map.Entry<Object,T>,T> mapper)
-
parseValue
public static Object parseValue(String propertyKey, String val, Map<Object,Object> accumulator, Map<Object,Object> currentDefaults, IconLoader iconLoader)
-
getReferencePrefix
public static String getReferencePrefix()
-
-