public static DeploymentStateResource fromKey(String deploymentStateResourceKey) { Assert.hasText(deploymentStateResourceKey, "Parameter deploymentStateResourceKey must not be null or empty."); for (DeploymentStateResource deploymentStateResource : DeploymentStateResource.values()) { if (deploymentStateResource.getKey().equals(deploymentStateResourceKey)) { return deploymentStateResource; } } return null; }
public static DeploymentStateResource fromKey(String deploymentStateResourceKey) { Assert.hasText(deploymentStateResourceKey, "Parameter deploymentStateResourceKey must not be null or empty."); for (DeploymentStateResource deploymentStateResource : DeploymentStateResource.values()) { if (deploymentStateResource.getKey().equals(deploymentStateResourceKey)) { return deploymentStateResource; } } return null; }