Ejemplo n.º 1
0
 /**
  * Creates a new ICEMetricValue
  *
  * @param type The metricId type
  * @param value The value of this metricId in bytes
  */
 ICEMetricValue(MetricType type, ByteBuffer value) {
   this.time = SystemClock.time();
   this.type = type;
   this.value = value;
   if (this.value.position() != 0) this.value.flip();
 }
Ejemplo n.º 2
0
 /**
  * Creates a new ICEMetricValue
  *
  * @param type The metricId type
  * @param longValue The value of this metricId as a long
  */
 ICEMetricValue(MetricType type, long longValue) {
   this.time = SystemClock.time();
   this.type = type;
   this.longValue = longValue;
 }