public class CoreFilterUtils extends Object
| Constructor and Description |
|---|
CoreFilterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
acceptClassifier(net.thevpc.nuts.NutsIdLocation location,
String classifier) |
static boolean |
acceptCondition(net.thevpc.nuts.NutsEnvCondition envCond,
boolean currentVMOnLy,
net.thevpc.nuts.NutsSession session) |
static net.thevpc.nuts.NutsEnvCondition |
blankCondition(net.thevpc.nuts.NutsSession session) |
static <T> net.thevpc.nuts.NutsPredicate<net.thevpc.nuts.NutsId> |
createFilter(net.thevpc.nuts.NutsIdFilter t,
net.thevpc.nuts.NutsSession session) |
static net.thevpc.nuts.NutsDescriptorFilter |
createNutsDescriptorFilter(Map<String,String> faceMap,
net.thevpc.nuts.NutsSession ws) |
static net.thevpc.nuts.NutsDescriptorFilter |
createNutsDescriptorFilter(String arch,
String os,
String osDist,
String platform,
String desktopEnv,
net.thevpc.nuts.NutsSession session) |
static net.thevpc.nuts.NutsDependency[] |
filterDependencies(net.thevpc.nuts.NutsId from,
net.thevpc.nuts.NutsDependency[] d0,
net.thevpc.nuts.NutsDependencyFilter dependencyFilter,
net.thevpc.nuts.NutsSession session) |
static List<net.thevpc.nuts.NutsExtensionInformation> |
filterNutsExtensionInfoByLatestVersion(List<net.thevpc.nuts.NutsExtensionInformation> base) |
static List<net.thevpc.nuts.NutsId> |
filterNutsIdByLatestVersion(List<net.thevpc.nuts.NutsId> base) |
static net.thevpc.nuts.NutsFilter[] |
getTopLevelFilters(net.thevpc.nuts.NutsFilter idFilter) |
static <T extends net.thevpc.nuts.NutsFilter> |
getTopLevelFilters(net.thevpc.nuts.NutsFilter idFilter,
Class<T> clazz,
net.thevpc.nuts.NutsSession ws) |
static net.thevpc.nuts.NutsIdFilter |
idFilterOf(Map<String,String> map,
net.thevpc.nuts.NutsIdFilter idFilter,
net.thevpc.nuts.NutsDescriptorFilter descriptorFilter,
net.thevpc.nuts.NutsSession ws) |
static boolean |
matchesArch(String current,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesDesktopEnvironment(net.thevpc.nuts.NutsId[] platforms,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesDesktopEnvironment(String current,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesEnv(String arch,
String os,
String dist,
String platform,
String de,
net.thevpc.nuts.NutsEnvCondition desc,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesOs(String os,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesOsDist(String current,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesPackaging(String packaging,
net.thevpc.nuts.NutsDescriptor desc,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesPlatform(net.thevpc.nuts.NutsPlatformLocation[] platforms,
String[] allCond,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesPlatform(String current,
String[] allConds,
net.thevpc.nuts.NutsSession session) |
static boolean |
matchesSimpleNameStaticVersion(net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId pattern) |
static <T> T |
simplify(T any) |
static <T> T[] |
simplifyAndShrink(Class<T> cls,
T... any) |
static <T extends net.thevpc.nuts.NutsFilter> |
simplifyAndShrinkFilters(Class<T> cls,
Predicate<T> onRemove,
T... any) |
static <T extends net.thevpc.nuts.NutsFilter> |
simplifyFilterAnd(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all) |
static <T extends net.thevpc.nuts.NutsFilter> |
simplifyFilterNone(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all) |
static <T extends net.thevpc.nuts.NutsFilter> |
simplifyFilterOr(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all) |
static Map<String,String> |
toMap(net.thevpc.nuts.NutsEnvCondition condition) |
static net.thevpc.nuts.NutsEnvCondition |
trimToBlank(net.thevpc.nuts.NutsEnvCondition c,
net.thevpc.nuts.NutsSession session) |
static net.thevpc.nuts.NutsEnvCondition |
trimToNull(net.thevpc.nuts.NutsEnvCondition c,
net.thevpc.nuts.NutsSession session) |
public static <T extends net.thevpc.nuts.NutsFilter> T[] getTopLevelFilters(net.thevpc.nuts.NutsFilter idFilter,
Class<T> clazz,
net.thevpc.nuts.NutsSession ws)
public static net.thevpc.nuts.NutsFilter[] getTopLevelFilters(net.thevpc.nuts.NutsFilter idFilter)
public static net.thevpc.nuts.NutsIdFilter idFilterOf(Map<String,String> map, net.thevpc.nuts.NutsIdFilter idFilter, net.thevpc.nuts.NutsDescriptorFilter descriptorFilter, net.thevpc.nuts.NutsSession ws)
public static net.thevpc.nuts.NutsDescriptorFilter createNutsDescriptorFilter(String arch, String os, String osDist, String platform, String desktopEnv, net.thevpc.nuts.NutsSession session)
public static net.thevpc.nuts.NutsDescriptorFilter createNutsDescriptorFilter(Map<String,String> faceMap, net.thevpc.nuts.NutsSession ws)
public static <T> net.thevpc.nuts.NutsPredicate<net.thevpc.nuts.NutsId> createFilter(net.thevpc.nuts.NutsIdFilter t,
net.thevpc.nuts.NutsSession session)
public static List<net.thevpc.nuts.NutsExtensionInformation> filterNutsExtensionInfoByLatestVersion(List<net.thevpc.nuts.NutsExtensionInformation> base)
public static List<net.thevpc.nuts.NutsId> filterNutsIdByLatestVersion(List<net.thevpc.nuts.NutsId> base)
public static boolean matchesPackaging(String packaging, net.thevpc.nuts.NutsDescriptor desc, net.thevpc.nuts.NutsSession session)
public static boolean acceptCondition(net.thevpc.nuts.NutsEnvCondition envCond,
boolean currentVMOnLy,
net.thevpc.nuts.NutsSession session)
public static boolean matchesArch(String current, String[] allConds, net.thevpc.nuts.NutsSession session)
public static boolean matchesOs(String os, String[] allConds, net.thevpc.nuts.NutsSession session)
public static boolean matchesOsDist(String current, String[] allConds, net.thevpc.nuts.NutsSession session)
public static boolean matchesPlatform(net.thevpc.nuts.NutsPlatformLocation[] platforms,
String[] allCond,
net.thevpc.nuts.NutsSession session)
public static boolean matchesPlatform(String current, String[] allConds, net.thevpc.nuts.NutsSession session)
public static boolean matchesDesktopEnvironment(net.thevpc.nuts.NutsId[] platforms,
String[] allConds,
net.thevpc.nuts.NutsSession session)
public static boolean matchesDesktopEnvironment(String current, String[] allConds, net.thevpc.nuts.NutsSession session)
public static boolean matchesEnv(String arch, String os, String dist, String platform, String de, net.thevpc.nuts.NutsEnvCondition desc, net.thevpc.nuts.NutsSession session)
public static net.thevpc.nuts.NutsDependency[] filterDependencies(net.thevpc.nuts.NutsId from,
net.thevpc.nuts.NutsDependency[] d0,
net.thevpc.nuts.NutsDependencyFilter dependencyFilter,
net.thevpc.nuts.NutsSession session)
public static boolean matchesSimpleNameStaticVersion(net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId pattern)
public static boolean acceptClassifier(net.thevpc.nuts.NutsIdLocation location,
String classifier)
public static net.thevpc.nuts.NutsEnvCondition blankCondition(net.thevpc.nuts.NutsSession session)
public static net.thevpc.nuts.NutsEnvCondition trimToNull(net.thevpc.nuts.NutsEnvCondition c,
net.thevpc.nuts.NutsSession session)
public static net.thevpc.nuts.NutsEnvCondition trimToBlank(net.thevpc.nuts.NutsEnvCondition c,
net.thevpc.nuts.NutsSession session)
public static <T extends net.thevpc.nuts.NutsFilter> T simplifyFilterOr(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all)
public static <T extends net.thevpc.nuts.NutsFilter> T simplifyFilterAnd(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all)
public static <T extends net.thevpc.nuts.NutsFilter> T simplifyFilterNone(net.thevpc.nuts.NutsSession ws,
Class<T> cls,
T base,
net.thevpc.nuts.NutsFilter... all)
public static <T> T simplify(T any)
public static <T> T[] simplifyAndShrink(Class<T> cls, T... any)
Copyright © 2022 vpc open source initiative. All rights reserved.