@Test public void testVnodeRepairStates() { LongTokenRange range = new LongTokenRange(1, 2); LongTokenRange range2 = new LongTokenRange(2, 3); Host host1 = mock(Host.class); VnodeRepairState vnodeRepairState = new VnodeRepairState(range, ImmutableSet.of(host1), VnodeRepairState.UNREPAIRED); VnodeRepairState vnodeRepairState2 = new VnodeRepairState(range2, ImmutableSet.of(host1), VnodeRepairState.UNREPAIRED); VnodeRepairStates vnodeRepairStates = VnodeRepairStates.newBuilder(Arrays.asList(vnodeRepairState, vnodeRepairState2)) .build(); assertThat(vnodeRepairStates.getVnodeRepairStates()).containsExactlyInAnyOrder(vnodeRepairState, vnodeRepairState2); }
private VnodeRepairStates(Builder builder) { myVnodeRepairStatuses = ImmutableList.copyOf(builder.myVnodeRepairStates.values()); }
VnodeRepairStates { private VnodeRepairStates(Builder builder) { myVnodeRepairStatuses = ImmutableList.copyOf(builder.myVnodeRepairStates.values()); } }
VnodeRepairStates { private VnodeRepairStates(Builder builder) { myVnodeRepairStatuses = ImmutableList.copyOf(builder.myVnodeRepairStates.values()); } private  VnodeRepairStates(Builder builder); }
VnodeRepairStates { private VnodeRepairStates(Builder builder) { myVnodeRepairStatuses = ImmutableList.copyOf(builder.myVnodeRepairStates.values()); } private  VnodeRepairStates(Builder builder); Collection<VnodeRepairState> getVnodeRepairStates(); VnodeRepairStates combineWithRepairedAt(long repairedAt); @Override String toString(); static Builder newBuilder(Collection<VnodeRepairState> vnodeRepairStates); @Override boolean equals(Object o); @Override int hashCode(); }
VnodeRepairStates { private VnodeRepairStates(Builder builder) { myVnodeRepairStatuses = ImmutableList.copyOf(builder.myVnodeRepairStates.values()); } private  VnodeRepairStates(Builder builder); Collection<VnodeRepairState> getVnodeRepairStates(); VnodeRepairStates combineWithRepairedAt(long repairedAt); @Override String toString(); static Builder newBuilder(Collection<VnodeRepairState> vnodeRepairStates); @Override boolean equals(Object o); @Override int hashCode();  }