MetricUtils

public final class MetricUtils
extends Object

java.lang.Object
   ↳ com.google.android.tradefed.result.teststorage.MetricUtils


Klasa zawierająca metody pomocnicze do obsługi konwersji formatu Metric.

Podsumowanie

Konstruktory publiczne

MetricUtils()

Metody publiczne

static HashMap<String, Double> convertValueToDouble(HashMap<String, MetricMeasurement.Metric> tfMetrics)

Konwersja Map<string, metricmeasurement.metric=""> na Map<string, double="">. </string,></string,>

static Metrics toMetrics(HashMap<String, MetricMeasurement.Metric> tfMetrics)

Konwertuje HashMapę klucza danych na mapowania danych Tradefed na model danych Android Build API Metrics.

Konstruktory publiczne

MetricUtils

public MetricUtils ()

Metody publiczne

convertValueToDouble

public static HashMap<String, Double> convertValueToDouble (HashMap<String, MetricMeasurement.Metric> tfMetrics)

Konwersja Map<string, metricmeasurement.metric=""> na Map<string, double="">. Pojedyncze wartości int i double są zachowywane, listy wartości nie są konwertowane i zostaną utracone.</string,></string,>

Parametry
tfMetrics HashMap: HashMap klucza danych do danych Tradefed

Zwraca
HashMap<String, Double> HashMapa klucza danych do wartości podwójnej

toMetrics

public static Metrics toMetrics (HashMap<String, MetricMeasurement.Metric> tfMetrics)

Konwertuje HashMapę klucza danych na mapowania danych Tradefed na model danych Android Build API Metrics.

Parametry
tfMetrics HashMap: HashMap klucza danych do danych Tradefed

Zwraca
Metrics model danych