@Test public void isEmpty() throws Exception { ProviderGroup pg = new ProviderGroup("xxx", null); Assert.assertTrue(pg.isEmpty()); pg = new ProviderGroup("xxx", new ArrayList<ProviderInfo>()); Assert.assertTrue(pg.isEmpty()); pg = new ProviderGroup("xxx", Arrays.asList(ProviderHelper.toProviderInfo("127.0.0.1:12200"))); Assert.assertTrue(!pg.isEmpty()); }
public boolean isEmpty() { return CommonUtils.isEmpty(providerInfos); }
ProviderGroup { public boolean isEmpty() { return CommonUtils.isEmpty(providerInfos); } }
ProviderGroup { public boolean isEmpty() { return CommonUtils.isEmpty(providerInfos); } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); }
ProviderGroup { public boolean isEmpty() { return CommonUtils.isEmpty(providerInfos); } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); String getName(); List<ProviderInfo> getProviderInfos(); void setProviderInfos(List<ProviderInfo> providerInfos); boolean isEmpty(); int size(); ProviderGroup add(ProviderInfo providerInfo); ProviderGroup addAll(Collection<ProviderInfo> providerInfos); ProviderGroup remove(ProviderInfo providerInfo); ProviderGroup removeAll(List<ProviderInfo> providerInfos); @Override String toString(); }
ProviderGroup { public boolean isEmpty() { return CommonUtils.isEmpty(providerInfos); } ProviderGroup();  ProviderGroup(String name);  ProviderGroup(String name, List<ProviderInfo> providerInfos);  ProviderGroup(List<ProviderInfo> providerInfos); String getName(); List<ProviderInfo> getProviderInfos(); void setProviderInfos(List<ProviderInfo> providerInfos); boolean isEmpty(); int size(); ProviderGroup add(ProviderInfo providerInfo); ProviderGroup addAll(Collection<ProviderInfo> providerInfos); ProviderGroup remove(ProviderInfo providerInfo); ProviderGroup removeAll(List<ProviderInfo> providerInfos); @Override String toString();  }