@Test public void hasValuesTest() { FieldValueModel testFieldValueModel = createEmptyFieldValueModel(); FieldValueModel testFieldValueModelNoValues = createEmptyFieldValueModel(); List<String> values = new ArrayList(); values.add(testValue); testFieldValueModel.setValues(values); assertTrue(testFieldValueModel.hasValues()); assertFalse(testFieldValueModelNoValues.hasValues()); }
public boolean hasValues() { return !getValues().isEmpty(); }
FieldValueModel extends AlertSerializableModel { public boolean hasValues() { return !getValues().isEmpty(); } }
FieldValueModel extends AlertSerializableModel { public boolean hasValues() { return !getValues().isEmpty(); } private  FieldValueModel();  FieldValueModel(Collection<String> values, boolean isSet); }
FieldValueModel extends AlertSerializableModel { public boolean hasValues() { return !getValues().isEmpty(); } private  FieldValueModel();  FieldValueModel(Collection<String> values, boolean isSet); Collection<String> getValues(); void setValues(Collection<String> values); @JsonIgnore Optional<String> getValue(); @JsonIgnore void setValue(String value); boolean getIsSet(); void setIsSet(boolean isSet); boolean hasValues(); boolean containsNoData(); }
FieldValueModel extends AlertSerializableModel { public boolean hasValues() { return !getValues().isEmpty(); } private  FieldValueModel();  FieldValueModel(Collection<String> values, boolean isSet); Collection<String> getValues(); void setValues(Collection<String> values); @JsonIgnore Optional<String> getValue(); @JsonIgnore void setValue(String value); boolean getIsSet(); void setIsSet(boolean isSet); boolean hasValues(); boolean containsNoData();  }