@Test public void toStringNoFamily() { VendorFamily family = new VendorFamily(); assertThat(family.toString(), equalTo("")); }
@Override public String toString() { return Stream.of(_aws, _cisco, _ciscoNxos, _ciscoXr, _cumulus, _f5Bigip, _juniper) .filter(Objects::nonNull) .map(f -> Objects.toString(toFamilyType(f))) .collect(Collectors.joining(" ")); }
VendorFamily implements Serializable { @Override public String toString() { return Stream.of(_aws, _cisco, _ciscoNxos, _ciscoXr, _cumulus, _f5Bigip, _juniper) .filter(Objects::nonNull) .map(f -> Objects.toString(toFamilyType(f))) .collect(Collectors.joining(" ")); } }
VendorFamily implements Serializable { @Override public String toString() { return Stream.of(_aws, _cisco, _ciscoNxos, _ciscoXr, _cumulus, _f5Bigip, _juniper) .filter(Objects::nonNull) .map(f -> Objects.toString(toFamilyType(f))) .collect(Collectors.joining(" ")); }  }
VendorFamily implements Serializable { @Override public String toString() { return Stream.of(_aws, _cisco, _ciscoNxos, _ciscoXr, _cumulus, _f5Bigip, _juniper) .filter(Objects::nonNull) .map(f -> Objects.toString(toFamilyType(f))) .collect(Collectors.joining(" ")); }  @JsonProperty(PROP_AWS) AwsFamily getAws(); @JsonProperty(PROP_CISCO) CiscoFamily getCisco(); @JsonProperty(PROP_CISCO_NXOS) CiscoNxosFamily getCiscoNxos(); @JsonIgnore CiscoXrFamily getCiscoXr(); @JsonProperty(PROP_CUMULUS) CumulusFamily getCumulus(); @JsonIgnore F5BigipFamily getF5Bigip(); @JsonProperty(PROP_JUNIPER) JuniperFamily getJuniper(); @JsonProperty(PROP_AWS) void setAws(AwsFamily aws); @JsonProperty(PROP_CISCO) void setCisco(CiscoFamily cisco); @JsonProperty(PROP_CISCO_NXOS) void setCiscoNxos(CiscoNxosFamily ciscoNxos); @JsonIgnore void setCiscoXr(CiscoXrFamily ciscoXr); @JsonProperty(PROP_CUMULUS) void setCumulus(CumulusFamily cumulus); @JsonIgnore void setF5Bigip(F5BigipFamily f5Bigip); @JsonProperty(PROP_JUNIPER) void setJuniper(JuniperFamily juniper); @Override String toString(); }
VendorFamily implements Serializable { @Override public String toString() { return Stream.of(_aws, _cisco, _ciscoNxos, _ciscoXr, _cumulus, _f5Bigip, _juniper) .filter(Objects::nonNull) .map(f -> Objects.toString(toFamilyType(f))) .collect(Collectors.joining(" ")); }  @JsonProperty(PROP_AWS) AwsFamily getAws(); @JsonProperty(PROP_CISCO) CiscoFamily getCisco(); @JsonProperty(PROP_CISCO_NXOS) CiscoNxosFamily getCiscoNxos(); @JsonIgnore CiscoXrFamily getCiscoXr(); @JsonProperty(PROP_CUMULUS) CumulusFamily getCumulus(); @JsonIgnore F5BigipFamily getF5Bigip(); @JsonProperty(PROP_JUNIPER) JuniperFamily getJuniper(); @JsonProperty(PROP_AWS) void setAws(AwsFamily aws); @JsonProperty(PROP_CISCO) void setCisco(CiscoFamily cisco); @JsonProperty(PROP_CISCO_NXOS) void setCiscoNxos(CiscoNxosFamily ciscoNxos); @JsonIgnore void setCiscoXr(CiscoXrFamily ciscoXr); @JsonProperty(PROP_CUMULUS) void setCumulus(CumulusFamily cumulus); @JsonIgnore void setF5Bigip(F5BigipFamily f5Bigip); @JsonProperty(PROP_JUNIPER) void setJuniper(JuniperFamily juniper); @Override String toString();  }