Assert.assertEquals(1000,mapping.keySet().iterator().next().size()); | Assert.assertEquals(1000,mapping.values().iterator().next().size()); | mapping.keySet() | mapping.values() | rest.li | 896facedc21d40d9d1469608b74010d82514a63e | com.linkedin.d2.balancer.util.hashing.RingBasedURIMapperTest | | | | | | Uses | True |
Assert.assertEquals(1000,mapping.keySet().iterator().next().size()); | Assert.assertEquals(1000,mapping.values().iterator().next().size()); | mapping.keySet() | mapping.values() | rest.li | 896facedc21d40d9d1469608b74010d82514a63e | com.linkedin.d2.balancer.util.hashing.RingBasedURIMapperTest | | | | | | Uses | True |
int mappedKeyCount=mapping.keySet().stream().map(Set::size).reduce(Integer::sum).get(); | int mappedKeyCount=mapping.values().stream().map(Set::size).reduce(Integer::sum).get(); | mapping.keySet() | mapping.values() | rest.li | 896facedc21d40d9d1469608b74010d82514a63e | com.linkedin.d2.balancer.util.hashing.RingBasedURIMapperTest | | | | | | Uses | True |
Set<Integer> mappedKeys=mapping.keySet().stream().reduce(new HashSet<>(),(e1,e2) -> { e1.addAll(e2); return e1;}); | Set<Integer> mappedKeys=mapping.values().stream().reduce(new HashSet<>(),(e1,e2) -> { e1.addAll(e2); return e1;}); | mapping.keySet() | mapping.values() | rest.li | 896facedc21d40d9d1469608b74010d82514a63e | com.linkedin.d2.balancer.util.hashing.RingBasedURIMapperTest | | | | | | Uses | True |