| Package | Description |
|---|---|
| com.alee.api.jdk | |
| com.alee.managers.language | |
| com.alee.managers.settings | |
| com.alee.utils |
This package contains various utility and utility-related classes provided by 'core' module.
|
| com.alee.utils.collection | |
| com.alee.utils.concurrent |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SerializableSupplier<T>
Supplier marked as Serializable. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Objects.requireNonNull(T object,
Supplier<RuntimeException> exceptionSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
static Supplier<Language> |
LM.getLanguageSupplier()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
LM.setLanguageSupplier(Supplier<Language> supplier)
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
SettingsManager.get(String group,
String key,
Supplier<T> defaultValueSupplier)
Returns stored settings.
|
static <T> T |
SettingsManager.get(String key,
Supplier<T> defaultValueSupplier)
Returns stored settings.
|
static <T> T |
SettingsManager.getSettings(String fileName,
Supplier<T> defaultValue)
Returns value read from the settings file.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
TextUtils.requireNonEmpty(String text,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified text is not
null or empty and throws a RuntimeException if it is. |
static <T extends Collection<?>> |
CollectionUtils.requireNotEmpty(T collection,
Supplier<RuntimeException> exceptionSupplier)
Checks that the specified
Collection is not empty and throws a customized RuntimeException if it is. |
| Modifier and Type | Method and Description |
|---|---|
B |
CollectionBuilder.add(Supplier<Boolean> condition,
T element)
Adds specified element into
CollectionBuilder.collection if condition is met. |
B |
CollectionBuilder.addAll(Supplier<Boolean> condition,
Collection<? extends T> collection)
Adds all
Collection elements into CollectionBuilder.collection if condition is met. |
| Constructor and Description |
|---|
DaemonThreadFactory(Supplier<String> nameSupplier)
Constructs new
DaemonThreadFactory. |
Copyright © 2020. All rights reserved.