@Test public void getValueTest() { List<String> values = new ArrayList(); values.add(testValue); FieldValueModel testFieldValueModel = new FieldValueModel(values, Boolean.TRUE); assertTrue(testFieldValueModel.getValue().isPresent()); assertEquals(testValue, testFieldValueModel.getValue().get()); }
@JsonIgnore public Optional<String> getValue() { return getValues().stream().findFirst(); }
FieldValueModel extends AlertSerializableModel { @JsonIgnore public Optional<String> getValue() { return getValues().stream().findFirst(); } }
FieldValueModel extends AlertSerializableModel { @JsonIgnore public Optional<String> getValue() { return getValues().stream().findFirst(); } private  FieldValueModel();  FieldValueModel(Collection<String> values, boolean isSet); }
FieldValueModel extends AlertSerializableModel { @JsonIgnore public Optional<String> getValue() { return getValues().stream().findFirst(); } 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 { @JsonIgnore public Optional<String> getValue() { return getValues().stream().findFirst(); } 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();  }