@Test public void testSetIp() { ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(); LocationContext context = new LocationContext(map); context.setIp("127.255.255.255"); assertEquals(context.getIp(), "127.255.255.255"); assertEquals(map.size(), 1); assertEquals(map.get(ContextTagKeys.getKeys().getLocationIP()), "127.255.255.255"); }
public void setIp(String value) { if (!Strings.isNullOrEmpty(value) && isIPV4(value)) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getLocationIP(), value); } }
LocationContext { public void setIp(String value) { if (!Strings.isNullOrEmpty(value) && isIPV4(value)) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getLocationIP(), value); } } }
LocationContext { public void setIp(String value) { if (!Strings.isNullOrEmpty(value) && isIPV4(value)) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getLocationIP(), value); } } LocationContext(ConcurrentMap<String, String> tags); }
LocationContext { public void setIp(String value) { if (!Strings.isNullOrEmpty(value) && isIPV4(value)) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getLocationIP(), value); } } LocationContext(ConcurrentMap<String, String> tags); void setIp(String value); }
LocationContext { public void setIp(String value) { if (!Strings.isNullOrEmpty(value) && isIPV4(value)) { MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getLocationIP(), value); } } LocationContext(ConcurrentMap<String, String> tags); void setIp(String value);  }