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

Method main

equalshashcode/IndividualTest.java:10–17  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

8
9public class IndividualTest {
10 public static void main(String[] args) {
11 Set<Individual> pets = new TreeSet<>();
12 for(List<? extends Pet> lp :
13 MapOfList.petPeople.values())
14 for(Pet p : lp)
15 pets.add(p);
16 pets.forEach(System.out::println);
17 }
18}
19/* Output:
20Cat Elsie May

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected