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

Publiczne konstruktory

MetricUtils()

Metody publiczne

static convertValueToDouble( tfMetrics)

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

static Metrics toMetrics( tfMetrics)

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

Publiczne konstruktory

MetricUtils

public MetricUtils ()

Metody publiczne

convertValueToDouble

public static  convertValueToDouble ( 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 : HashMapa klucza danych do danych Tradefed

Zwroty
HashMapa klucza danych do wartości podwójnej

toMetrics

public static Metrics toMetrics ( tfMetrics)

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

Parametry
tfMetrics : HashMapa klucza danych do danych Tradefed

Zwroty
Metrics model danych