Code example for Set

Methods: contains

0
        project.getBuildersList().add(builder);
 
        FreeStyleBuild build = project.scheduleBuild2(0).get();
        Set<String> sensitiveVars = build.getSensitiveBuildVariables();
 
        assertNotNull(sensitiveVars);
        assertFalse(sensitiveVars.contains("string"));
        assertTrue(sensitiveVars.contains("password"));
        assertFalse(sensitiveVars.contains("string2"));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java