@Test public void isValid() throws InvalidMapBoxStyleException, JSONException { InfoWindowConfig config1 = new InfoWindowConfig(); Assert.assertFalse(config1.isValid()); InfoWindowConfig config2 = new InfoWindowConfig(); config2.addVisibleProperty("test", "test"); Assert.assertTrue(config2.isValid()); }
@Override public boolean isValid() { return (visibleProperties != null && visibleProperties.length() > 0); }
InfoWindowConfig implements Config { @Override public boolean isValid() { return (visibleProperties != null && visibleProperties.length() > 0); } }
InfoWindowConfig implements Config { @Override public boolean isValid() { return (visibleProperties != null && visibleProperties.length() > 0); } InfoWindowConfig();  InfoWindowConfig(JSONObject config); }
InfoWindowConfig implements Config { @Override public boolean isValid() { return (visibleProperties != null && visibleProperties.length() > 0); } InfoWindowConfig();  InfoWindowConfig(JSONObject config); JSONArray getVisibleProperties(); void setVisibleProperties(@NonNull JSONArray visibleProperties); void addVisibleProperty(@NonNull String id, @NonNull String label); @Override boolean isValid(); @Override JSONObject toJsonObject(); }
InfoWindowConfig implements Config { @Override public boolean isValid() { return (visibleProperties != null && visibleProperties.length() > 0); } InfoWindowConfig();  InfoWindowConfig(JSONObject config); JSONArray getVisibleProperties(); void setVisibleProperties(@NonNull JSONArray visibleProperties); void addVisibleProperty(@NonNull String id, @NonNull String label); @Override boolean isValid(); @Override JSONObject toJsonObject(); static final String KEY_VISIBLE_PROPERTIES; static final String KEY_VP_ID; static final String KEY_VP_LABEL; }