@Test void hasFields() { Assertions.assertThat(Point.measurement("h2o").hasFields()).isFalse(); Assertions.assertThat(Point.measurement("h2o").addTag("location", "europe").hasFields()).isFalse(); Assertions.assertThat(Point.measurement("h2o").addField("level", 2).hasFields()).isTrue(); Assertions.assertThat(Point.measurement("h2o").addTag("location", "europe").addField("level", 3).hasFields()).isTrue(); }
public boolean hasFields() { return !fields.isEmpty(); }
Point { public boolean hasFields() { return !fields.isEmpty(); } }
Point { public boolean hasFields() { return !fields.isEmpty(); } Point(@Nonnull final String measurementName); }
Point { public boolean hasFields() { return !fields.isEmpty(); } Point(@Nonnull final String measurementName); @Nonnull static Point measurement(@Nonnull final String measurementName); @Nonnull Point addTag(@Nonnull final String key, @Nullable final String value); @Nonnull Point addTags(@Nonnull final Map<String, String> tagsToAdd); @Nonnull Point addField(@Nonnull final String field, final boolean value); Point addField(@Nonnull final String field, final long value); @Nonnull Point addField(@Nonnull final String field, final double value); @Nonnull Point addField(@Nonnull final String field, @Nullable final Number value); @Nonnull Point addField(@Nonnull final String field, @Nullable final String value); @Nonnull Point addFields(@Nonnull final Map<String, Object> fieldsToAdd); @Nonnull Point time(@Nullable final Instant time, @Nonnull final WritePrecision precision); @Nonnull Point time(@Nullable final Number time, @Nonnull final WritePrecision precision); @Nonnull Point time(@Nullable final Long time, @Nonnull final WritePrecision precision); @Nonnull WritePrecision getPrecision(); boolean hasFields(); @Nonnull String toLineProtocol(); @Nonnull String toLineProtocol(@Nullable final PointSettings pointSettings); }
Point { public boolean hasFields() { return !fields.isEmpty(); } Point(@Nonnull final String measurementName); @Nonnull static Point measurement(@Nonnull final String measurementName); @Nonnull Point addTag(@Nonnull final String key, @Nullable final String value); @Nonnull Point addTags(@Nonnull final Map<String, String> tagsToAdd); @Nonnull Point addField(@Nonnull final String field, final boolean value); Point addField(@Nonnull final String field, final long value); @Nonnull Point addField(@Nonnull final String field, final double value); @Nonnull Point addField(@Nonnull final String field, @Nullable final Number value); @Nonnull Point addField(@Nonnull final String field, @Nullable final String value); @Nonnull Point addFields(@Nonnull final Map<String, Object> fieldsToAdd); @Nonnull Point time(@Nullable final Instant time, @Nonnull final WritePrecision precision); @Nonnull Point time(@Nullable final Number time, @Nonnull final WritePrecision precision); @Nonnull Point time(@Nullable final Long time, @Nonnull final WritePrecision precision); @Nonnull WritePrecision getPrecision(); boolean hasFields(); @Nonnull String toLineProtocol(); @Nonnull String toLineProtocol(@Nullable final PointSettings pointSettings);  }