public class CoreNUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CoreNUtils.NDefaultThreadFactory |
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COLOR_NAMES |
static DateTimeFormatter |
DEFAULT_DATE_TIME_FORMATTER |
static int |
DEFAULT_DATE_TIME_FORMATTER_LENGTH |
static int |
DEFAULT_UUID_LENGTH |
static int |
LOCK_TIME |
static TimeUnit |
LOCK_TIME_UNIT |
static CoreNUtils.NDefaultThreadFactory |
N_DEFAULT_THREAD_FACTORY |
static Comparator<net.thevpc.nuts.NDefinition> |
NUTS_FILE_COMPARATOR |
static Comparator<net.thevpc.nuts.NId> |
NUTS_ID_COMPARATOR |
static Map<String,String> |
QUERY_EMPTY_ENV |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
applyMapProperties(Map<String,String> child,
Function<String,String> properties) |
static net.thevpc.nuts.NId |
applyNutsIdInheritance(net.thevpc.nuts.NId child,
net.thevpc.nuts.NId parent) |
static String |
applyStringInheritance(String child,
String parent) |
static List<String> |
applyStringProperties(List<String> child,
Function<String,String> properties) |
static net.thevpc.nuts.NVersion |
applyStringProperties(net.thevpc.nuts.NVersion child,
Function<String,String> properties) |
static String[] |
applyStringProperties(String[] child,
Function<String,String> properties) |
static String |
applyStringProperties(String child,
Function<String,String> properties) |
static List<String> |
applyStringPropertiesList(List<String> child,
Function<String,String> properties) |
static Object |
checkCopiableValue(Object value) |
static boolean |
containsVars(net.thevpc.nuts.NId id) |
static Properties |
copyOfNonNull(Properties p) |
static Properties |
copyOfOrNull(Properties p) |
static Object |
copyValue(Object value) |
static net.thevpc.nuts.NIdType |
detectIdType(net.thevpc.nuts.NId depId) |
static net.thevpc.nuts.NId |
findNutsIdBySimpleName(net.thevpc.nuts.NId id,
Collection<net.thevpc.nuts.NId> all) |
static String |
formatImport(List<String> imports) |
static int |
getApiVersionOrdinalNumber(net.thevpc.nuts.NVersion ss) |
static String |
getArrItem(String[] a,
int index) |
static boolean |
isCopiableValue(Object value) |
static boolean |
isCustomFalse(String name) |
static boolean |
isCustomTrue(String name) |
static boolean |
isDevVerbose() |
static boolean |
isEffectiveId(net.thevpc.nuts.NId id) |
static boolean |
isEffectiveValue(String value) |
static boolean |
isImmutableValue(Object value) |
static boolean |
isShowCommand() |
static boolean |
isUnsupportedFetchModeException(Throwable ex) |
static boolean |
isValidIdentifier(String s) |
static boolean |
isValidWorkspaceName(String workspace) |
static String[] |
nonNullArray_Locations(String[] a) |
static String[] |
nonNullArray_LocationsAndOses(String[] a) |
static String[] |
nonNullArray(String[] a,
int size) |
static String[] |
nullArray_Locations(String[] a) |
static String[] |
nullArray_LocationsAndOses(String[] a) |
static String[] |
nullArray(String[] a,
int size) |
static String |
randomColorName() |
static String |
repeat(char txt,
int count) |
static List<net.thevpc.nuts.NId> |
resolveNutsApiFromFromDependencies(net.thevpc.nuts.NDependencies deps) |
static List<net.thevpc.nuts.NId> |
resolveNutsApiIdsFromDefinition(net.thevpc.nuts.NDefinition def) |
static List<net.thevpc.nuts.NId> |
resolveNutsApiIdsFromDependencyList(List<net.thevpc.nuts.NDependency> deps) |
static List<net.thevpc.nuts.NId> |
resolveNutsApiIdsFromId(net.thevpc.nuts.NId id) |
static List<net.thevpc.nuts.NId> |
resolveNutsApiIdsFromIdList(List<net.thevpc.nuts.NId> deps) |
static String |
resolveValidWorkspaceName(String workspace) |
static RuntimeException |
toUncheckedException(Throwable e) |
static Map<String,Object> |
traceJsonNutsDefinition(net.thevpc.nuts.NDefinition def) |
public static final int DEFAULT_UUID_LENGTH
public static final int DEFAULT_DATE_TIME_FORMATTER_LENGTH
public static final DateTimeFormatter DEFAULT_DATE_TIME_FORMATTER
public static final String[] COLOR_NAMES
public static final int LOCK_TIME
public static final TimeUnit LOCK_TIME_UNIT
public static final CoreNUtils.NDefaultThreadFactory N_DEFAULT_THREAD_FACTORY
public static Comparator<net.thevpc.nuts.NId> NUTS_ID_COMPARATOR
public static Comparator<net.thevpc.nuts.NDefinition> NUTS_FILE_COMPARATOR
public static final boolean isDevVerbose()
public static String randomColorName()
public static String repeat(char txt, int count)
public static net.thevpc.nuts.NId findNutsIdBySimpleName(net.thevpc.nuts.NId id,
Collection<net.thevpc.nuts.NId> all)
public static boolean isEffectiveValue(String value)
public static boolean isEffectiveId(net.thevpc.nuts.NId id)
public static boolean containsVars(net.thevpc.nuts.NId id)
public static List<String> applyStringPropertiesList(List<String> child, Function<String,String> properties)
public static List<String> applyStringProperties(List<String> child, Function<String,String> properties)
public static String[] applyStringProperties(String[] child, Function<String,String> properties)
public static Map<String,String> applyMapProperties(Map<String,String> child, Function<String,String> properties)
public static net.thevpc.nuts.NVersion applyStringProperties(net.thevpc.nuts.NVersion child,
Function<String,String> properties)
public static String applyStringProperties(String child, Function<String,String> properties)
public static net.thevpc.nuts.NId applyNutsIdInheritance(net.thevpc.nuts.NId child,
net.thevpc.nuts.NId parent)
public static boolean isValidIdentifier(String s)
public static Map<String,Object> traceJsonNutsDefinition(net.thevpc.nuts.NDefinition def)
public static int getApiVersionOrdinalNumber(net.thevpc.nuts.NVersion ss)
public static boolean isValidWorkspaceName(String workspace)
public static Properties copyOfNonNull(Properties p)
public static Properties copyOfOrNull(Properties p)
public static boolean isUnsupportedFetchModeException(Throwable ex)
public static net.thevpc.nuts.NIdType detectIdType(net.thevpc.nuts.NId depId)
public static List<net.thevpc.nuts.NId> resolveNutsApiIdsFromId(net.thevpc.nuts.NId id)
public static List<net.thevpc.nuts.NId> resolveNutsApiIdsFromDefinition(net.thevpc.nuts.NDefinition def)
public static List<net.thevpc.nuts.NId> resolveNutsApiFromFromDependencies(net.thevpc.nuts.NDependencies deps)
public static List<net.thevpc.nuts.NId> resolveNutsApiIdsFromDependencyList(List<net.thevpc.nuts.NDependency> deps)
public static List<net.thevpc.nuts.NId> resolveNutsApiIdsFromIdList(List<net.thevpc.nuts.NId> deps)
public static boolean isCustomTrue(String name)
public static boolean isCustomFalse(String name)
public static RuntimeException toUncheckedException(Throwable e)
public static boolean isShowCommand()
public static boolean isImmutableValue(Object value)
public static boolean isCopiableValue(Object value)
Copyright © 2025 vpc open source initiative. All rights reserved.