package com.yammer.metrics.core;


/**
 * A gauge metric is an instantaneous reading of a particular value. To instrument a queue's depth,
 * for example:<br>
 * <pre><code>
 * Queue<String> queue = new ConcurrentLinkedQueue<String>();
 * Gauge<Integer> queueDepth = new Gauge<Integer>() {
 *     public Integer value() {
 *         return queue.size();
 *     }
 * };
 * <p/>
 * </code></pre>
 *
 * @param <T> the type of the metric's value
 */
public abstract class Gauge<T> implements Metric {
    /**
     * Returns the metric's current value.
     *
     * @return the metric's current value
     */
    public abstract T value();

    @Override
    public <U> void processWith(MetricProcessor<U> processor, MetricName name, U context) throws Exception {
        processor.processGauge(name, this, context);
    }
}

@@ -173,22 +173,34 @@
 %3E%0A *
+ final
  Queue
-%3C
+&lt;
 String
-%3E
+&gt;
  que
@@ -233,37 +233,55 @@
 ueue
-%3C
+&lt;
 String
-%3E
+&gt;
 ();%0A *
+ final
  Gauge
-%3C
+&lt;
 Integer
-%3E
+&gt;
  que
@@ -303,17 +303,23 @@
 auge
-%3C
+&lt;
 Integer
-%3E
+&gt;
 () %7B
@@ -396,22 +396,14 @@
   %7D%0A
+
  * %7D;%0A
- * %3Cp/%3E%0A
  * %3C

Fix Gauge javadocs.