MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / positionAvailable

Method positionAvailable

reflection/Staff.java:16–22  ·  view source on GitHub ↗
(String title)

Source from the content-addressed store, hash-verified

14 }
15 public Staff(String... titles) { add(titles); }
16 public boolean positionAvailable(String title) {
17 for(Position position : this)
18 if(position.getTitle().equals(title) &&
19 position.getPerson().empty)
20 return true;
21 return false;
22 }
23 public void fillPosition(String title, Person hire) {
24 for(Position position : this)
25 if(position.getTitle().equals(title) &&

Callers 1

mainMethod · 0.95

Calls 3

getTitleMethod · 0.80
getPersonMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected