Series implements Comparable<Series> { public static Series of(String key) { return new Series(key, EMPTY_TAGS, EMPTY_RESOURCE); } @JsonCreator  Series(
        @JsonProperty("key") String key, @JsonProperty("tags") SortedMap<String, String> tags,
        @JsonProperty("resource") Optional<SortedMap<String, String>> resource
    );  Series(final String key, final SortedMap<String, String> tags);  Series(
        final String key, final SortedMap<String, String> tags,
        final SortedMap<String, String> resource
    ); String getKey(); SortedMap<String, String> getTags(); SortedMap<String, String> getResource(); String hash(); @Override int hashCode(); @JsonIgnore HashCode getHashCodeTagOnly(); @Override boolean equals(Object obj); static Series empty(); static Series of(String key); static Series of(String key, Map<String, String> tags); static Series of(String key, Map<String, String> tags, Map<String, String> resource); static Series of(String key, Set<Map.Entry<String, String>> tagEntries); static Series of(
        String key, Iterator<Map.Entry<String, String>> tagPairs
    ); static Series of(
        String key, Iterator<Map.Entry<String, String>> tagPairs,
        Iterator<Map.Entry<String, String>> resourcePairs
    ); static Series of(
        String key, Map<String, String> tags, SortedMap<String, String> resource
    ); Series withResource(SortedMap<String, String> resource); @Override int compareTo(Series o); String toDSL(); String toString(); static final Joiner TAGS_JOINER; }
@Test public void testEquality() throws Exception { final Series a = Series.of("foo"); final Series b = Series.of("foo"); assertEquals(a, b); }