@Test public void testAsString() { Assert.assertEquals("type:name", Component.of("name", "type").asString()); }
public String asString() { return new StringJoiner(":").add(type).add(name).toString(); }
Component { public String asString() { return new StringJoiner(":").add(type).add(name).toString(); } }
Component { public String asString() { return new StringJoiner(":").add(type).add(name).toString(); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); }
Component { public String asString() { return new StringJoiner(":").add(type).add(name).toString(); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); static Component of(String name, String type); @Override int hashCode(); @Override boolean equals(Object o); String asString(); String getName(); String getType(); }
Component { public String asString() { return new StringJoiner(":").add(type).add(name).toString(); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); static Component of(String name, String type); @Override int hashCode(); @Override boolean equals(Object o); String asString(); String getName(); String getType();  }