@Test void testStringTag() { String key = "theKey"; String value = "someValue"; Tag<String> theTag = Tag.create(key, value); testValue(theTag, key, value); testEqualAndHashCode(theTag, Tag.create(key, value), Tag.create(key, "otherValue"), Tag.create("otherKey", value)); testToString(theTag); testApply(theTag); }
public static Tag<String> create(String key, String value) { return new StringTag(key, value); }
Tag { public static Tag<String> create(String key, String value) { return new StringTag(key, value); } }
Tag { public static Tag<String> create(String key, String value) { return new StringTag(key, value); } private  Tag(String key, T value); }
Tag { public static Tag<String> create(String key, String value) { return new StringTag(key, value); } private  Tag(String key, T value); static Tag<String> create(String key, String value); static Tag<Number> create(String key, Number value); static Tag<Boolean> create(String key, boolean value); String key(); T value(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); abstract void apply(Span span); }
Tag { public static Tag<String> create(String key, String value) { return new StringTag(key, value); } private  Tag(String key, T value); static Tag<String> create(String key, String value); static Tag<Number> create(String key, Number value); static Tag<Boolean> create(String key, boolean value); String key(); T value(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); abstract void apply(Span span);  }