public class DependencyUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static <E extends com.ca.apim.gateway.cagatewayconfig.beans.GatewayEntity> |
filterDependencies(java.lang.Class<E> dependentEntityType,
com.ca.apim.gateway.cagatewayconfig.beans.Bundle bundle,
com.ca.apim.gateway.cagatewayconfig.beans.Bundle filteredBundle,
java.util.function.Predicate<E> includeEntity) |
Filters dependencies of the given type from the given bundle.
|
static <E extends com.ca.apim.gateway.cagatewayconfig.beans.GatewayEntity> |
validateEntitiesInList(java.util.List<E> entities,
java.util.Collection<java.lang.String> entityNames,
java.lang.String entityName) |
Validates that all entities with names in the entityNames sets are in the entities list.
|
@NotNull
public static <E extends com.ca.apim.gateway.cagatewayconfig.beans.GatewayEntity> @NotNull java.util.List<E> filterDependencies(java.lang.Class<E> dependentEntityType,
com.ca.apim.gateway.cagatewayconfig.beans.Bundle bundle,
com.ca.apim.gateway.cagatewayconfig.beans.Bundle filteredBundle,
java.util.function.Predicate<E> includeEntity)
E - The entity typedependentEntityType - The dependent entity type to filter outbundle - The bundle to filter entities fromfilteredBundle - The filtered bundle to look through to find dependencies inincludeEntity - A predicate to force inclusion of an entitypublic static <E extends com.ca.apim.gateway.cagatewayconfig.beans.GatewayEntity> void validateEntitiesInList(java.util.List<E> entities,
java.util.Collection<java.lang.String> entityNames,
java.lang.String entityName)
E - The entity Typeentities - The list of entities to search throughentityNames - The entity names to ensure are in the entities listentityName - The name of the entity. Used in an exception message