TraceField

public interface TraceField<R extends GoogleTraceReaderAbstract>

An interface to be implemented by Enums representing a field in a Google Trace File. Each enum instance is used to get values from fields of the trace in the correct generic type T and possibly making some unit conversions (if required by the specific field represented by the enum instance).

Author:Manoel Campos da Silva Filho

Methods

getValue

<T> T getValue(R reader)

Gets the value (from a line read from a trace file) of the field associated to the enum instance.

Parameters:
  • reader – the reader for the trace file
  • <T> – the type to convert the value read from the trace to
Returns:

the field value converted to a specific type