Class AutoValue_Measure_MeasureLong


@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_Measure_MeasureLong extends Measure.MeasureLong
  • Field Details

    • name

      private final String name
    • description

      private final String description
    • unit

      private final String unit
  • Constructor Details

    • AutoValue_Measure_MeasureLong

      AutoValue_Measure_MeasureLong(String name, String description, String unit)
  • Method Details

    • getName

      public String getName()
      Description copied from class: Measure
      Name of measure, as a String. Should be a ASCII string with a length no greater than 255 characters.

      Suggested format for name: <web_host>/<path>.

      Specified by:
      getName in class Measure.MeasureLong
    • getDescription

      public String getDescription()
      Description copied from class: Measure
      Detailed description of the measure, used in documentation.
      Specified by:
      getDescription in class Measure.MeasureLong
    • getUnit

      public String getUnit()
      Description copied from class: Measure
      The units in which Measure values are measured.

      The suggested grammar for a unit is as follows:

      • Expression = Component { "." Component } {"/" Component };
      • Component = [ PREFIX ] UNIT [ Annotation ] | Annotation | "1";
      • Annotation = "{" NAME "}" ;

      For example, string “MBy{transmitted}/ms” stands for megabytes per milliseconds, and the annotation transmitted inside {} is just a comment of the unit.

      Specified by:
      getUnit in class Measure.MeasureLong
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object