void (String[] args) { FindUsageSingularBuilder findUsageBuilder = FindUsageSingularBuilder.builder() .bar("bar") .fooDate(16061981, new Date()); findUsageBuilder = FindUsageSingularBuilder.builder() .bars(Arrays.asList("bar1", "bar2")) .fooDateMap(Collections.emptyMap()); findUsageBuilder = FindUsageSingularBuilder.builder() .clearBars() .clearFooDateMap() .build(); System.out.println("Bar is: " + findUsageBuilder.getBars()); System.out.println("Foo is: " + findUsageBuilder.getFooDateMap()); }