move Tags.asString() to StringCompressor

This commit is contained in:
2021-09-18 10:18:42 +02:00
parent 54acb38e5e
commit 6cd6f578e7
4 changed files with 20 additions and 44 deletions

View File

@@ -37,7 +37,8 @@ public class Entry {
public String toString() {
final OffsetDateTime date = Instant.ofEpochMilli(epochMilli).atOffset(ZoneOffset.UTC);
return date.format(DateTimeFormatter.ISO_ZONED_DATE_TIME) + " = " + value + " (" + tags.asString() + ")";
return date.format(DateTimeFormatter.ISO_ZONED_DATE_TIME) + " = " + value + " ("
+ Tags.STRING_COMPRESSOR.asString(tags) + ")";
}
@Override