Class MeasureBuilder

  • All Implemented Interfaces:
    io.vertigo.core.lang.Builder<Measure>

    public final class MeasureBuilder
    extends Object
    implements io.vertigo.core.lang.Builder<Measure>
    Builder for a new Point.
    Author:
    stefan.majer [at] gmail.com
    • Method Detail

      • build

        public Measure build()
        Creates a new Point.
        Specified by:
        build in interface io.vertigo.core.lang.Builder<Measure>
        Returns:
        the newly created Point.
      • tag

        public MeasureBuilder tag​(String tagName,
                                  String value)
        Add a tag to this point.
        Parameters:
        tagName - the tag name
        value - the tag value
        Returns:
        the Builder instance.
      • time

        public MeasureBuilder time​(Instant measureInstant)
        Adds a time to this point.
        Parameters:
        measureInstant - rhe time for this point
        Returns:
        the Builder instance.