@Test public void testExtractBoolean() { Assert.assertEquals( true, DockerUtils.extractBoolean( Boolean.TRUE )); Assert.assertEquals( false, DockerUtils.extractBoolean( Boolean.FALSE )); Assert.assertEquals( false, DockerUtils.extractBoolean( null )); }
public static boolean extractBoolean( Boolean bool ) { return bool != null ? bool.booleanValue() : false; }
DockerUtils { public static boolean extractBoolean( Boolean bool ) { return bool != null ? bool.booleanValue() : false; } }
DockerUtils { public static boolean extractBoolean( Boolean bool ) { return bool != null ? bool.booleanValue() : false; } private  DockerUtils(); }
DockerUtils { public static boolean extractBoolean( Boolean bool ) { return bool != null ? bool.booleanValue() : false; } private  DockerUtils(); static DockerClient createDockerClient( Map<String,String> targetProperties ); static void deleteImageIfItExists( String imageId, DockerClient dockerClient ); static Image findImageByIdOrByTag( String name, DockerClient dockerClient ); static Image findImageById( String imageId, List<Image> images ); static Image findImageByTag( String imageTag, List<Image> images ); static Container findContainerByIdOrByName( String name, DockerClient dockerClient ); static ContainerState getContainerState( String containerId, DockerClient dockerClient ); static void configureOptions( Map<String,String> options, CreateContainerCmd cmd ); static Object prepareParameter( String rawValue, Class<?> clazz ); static boolean extractBoolean( Boolean bool ); static String findDefaultImageVersion( String rawVersion ); static String buildContainerNameFrom( String scopedInstancePath, String applicationName ); }
DockerUtils { public static boolean extractBoolean( Boolean bool ) { return bool != null ? bool.booleanValue() : false; } private  DockerUtils(); static DockerClient createDockerClient( Map<String,String> targetProperties ); static void deleteImageIfItExists( String imageId, DockerClient dockerClient ); static Image findImageByIdOrByTag( String name, DockerClient dockerClient ); static Image findImageById( String imageId, List<Image> images ); static Image findImageByTag( String imageTag, List<Image> images ); static Container findContainerByIdOrByName( String name, DockerClient dockerClient ); static ContainerState getContainerState( String containerId, DockerClient dockerClient ); static void configureOptions( Map<String,String> options, CreateContainerCmd cmd ); static Object prepareParameter( String rawValue, Class<?> clazz ); static boolean extractBoolean( Boolean bool ); static String findDefaultImageVersion( String rawVersion ); static String buildContainerNameFrom( String scopedInstancePath, String applicationName ); static final String LATEST; }