public class CoreNutsUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CoreNutsUtils.NutsDefaultThreadFactory |
| 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 String |
LOCAL_NUTS_FOLDER
vpc-public-nuts local repository at ${home.config}/.vpc-public-nuts
|
static int |
LOCK_TIME |
static TimeUnit |
LOCK_TIME_UNIT |
static Comparator<net.thevpc.nuts.NutsDefinition> |
NUTS_FILE_COMPARATOR |
static Comparator<net.thevpc.nuts.NutsId> |
NUTS_ID_COMPARATOR |
static CoreNutsUtils.NutsDefaultThreadFactory |
nutsDefaultThreadFactory |
static Map<String,String> |
QUERY_EMPTY_ENV |
| Constructor and Description |
|---|
CoreNutsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
applyMapProperties(Map<String,String> child,
Function<String,String> properties) |
static net.thevpc.nuts.NutsId |
applyNutsIdInheritance(net.thevpc.nuts.NutsId child,
net.thevpc.nuts.NutsId parent,
net.thevpc.nuts.NutsSession ws) |
static String |
applyStringInheritance(String child,
String parent) |
static net.thevpc.nuts.NutsVersion |
applyStringProperties(net.thevpc.nuts.NutsVersion child,
Function<String,String> properties,
net.thevpc.nuts.NutsSession ws) |
static String[] |
applyStringProperties(String[] child,
Function<String,String> properties) |
static String |
applyStringProperties(String child,
Function<String,String> properties) |
static boolean |
containsVars(net.thevpc.nuts.NutsId id) |
static Properties |
copyOfNonNull(Properties p) |
static Properties |
copyOfOrNull(Properties p) |
static net.thevpc.nuts.NutsIdType |
detectIdType(net.thevpc.nuts.NutsId depId,
net.thevpc.nuts.NutsSession session) |
static net.thevpc.nuts.NutsId |
findNutsIdBySimpleName(net.thevpc.nuts.NutsId id,
Collection<net.thevpc.nuts.NutsId> all) |
static String |
formatImport(List<String> imports) |
static int |
getApiVersionOrdinalNumber(String s) |
static String |
getArrItem(String[] a,
int index) |
static String |
idToPath(net.thevpc.nuts.NutsId id) |
static boolean |
isEffectiveId(net.thevpc.nuts.NutsId id) |
static boolean |
isEffectiveValue(String value) |
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.NutsId> |
resolveNutsApiIds(net.thevpc.nuts.NutsDefinition def,
net.thevpc.nuts.NutsSession session) |
static List<net.thevpc.nuts.NutsId> |
resolveNutsApiIds(net.thevpc.nuts.NutsDependencies deps,
net.thevpc.nuts.NutsSession session) |
static List<net.thevpc.nuts.NutsId> |
resolveNutsApiIds(net.thevpc.nuts.NutsDependency[] deps,
net.thevpc.nuts.NutsSession session) |
static List<net.thevpc.nuts.NutsId> |
resolveNutsApiIds(net.thevpc.nuts.NutsId[] deps,
net.thevpc.nuts.NutsSession session) |
static List<net.thevpc.nuts.NutsId> |
resolveNutsApiIds(net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsSession session) |
static String |
resolveValidWorkspaceName(String workspace) |
static Map<String,Object> |
traceJsonNutsDefinition(net.thevpc.nuts.NutsSession session,
net.thevpc.nuts.NutsDefinition def) |
public static final String LOCAL_NUTS_FOLDER
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 CoreNutsUtils.NutsDefaultThreadFactory nutsDefaultThreadFactory
public static Comparator<net.thevpc.nuts.NutsId> NUTS_ID_COMPARATOR
public static Comparator<net.thevpc.nuts.NutsDefinition> NUTS_FILE_COMPARATOR
public static String randomColorName()
public static String repeat(char txt, int count)
public static net.thevpc.nuts.NutsId findNutsIdBySimpleName(net.thevpc.nuts.NutsId id,
Collection<net.thevpc.nuts.NutsId> all)
public static boolean isEffectiveValue(String value)
public static boolean isEffectiveId(net.thevpc.nuts.NutsId id)
public static boolean containsVars(net.thevpc.nuts.NutsId id)
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.NutsVersion applyStringProperties(net.thevpc.nuts.NutsVersion child,
Function<String,String> properties,
net.thevpc.nuts.NutsSession ws)
public static String applyStringProperties(String child, Function<String,String> properties)
public static net.thevpc.nuts.NutsId applyNutsIdInheritance(net.thevpc.nuts.NutsId child,
net.thevpc.nuts.NutsId parent,
net.thevpc.nuts.NutsSession ws)
public static boolean isValidIdentifier(String s)
public static Map<String,Object> traceJsonNutsDefinition(net.thevpc.nuts.NutsSession session, net.thevpc.nuts.NutsDefinition def)
public static int getApiVersionOrdinalNumber(String s)
public static boolean isValidWorkspaceName(String workspace)
public static String idToPath(net.thevpc.nuts.NutsId id)
public static Properties copyOfNonNull(Properties p)
public static Properties copyOfOrNull(Properties p)
public static boolean isUnsupportedFetchModeException(Throwable ex)
public static net.thevpc.nuts.NutsIdType detectIdType(net.thevpc.nuts.NutsId depId,
net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsId> resolveNutsApiIds(net.thevpc.nuts.NutsId id, net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsId> resolveNutsApiIds(net.thevpc.nuts.NutsDefinition def, net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsId> resolveNutsApiIds(net.thevpc.nuts.NutsDependencies deps, net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsId> resolveNutsApiIds(net.thevpc.nuts.NutsDependency[] deps, net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsId> resolveNutsApiIds(net.thevpc.nuts.NutsId[] deps, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.