MinLongMetrics extends Metrics implements LongValueHolder { @Entrance public final void combine(@SourceFrom long count) { if (count < this.value) { this.value = count; } }  @Entrance final void combine(@SourceFrom long count); @Override final void combine(Metrics metrics); @Override void calculate();  }
@Test public void testSelfCombine() { MinLongMetricsImpl impl = new MinLongMetricsImpl(); impl.combine(10); impl.combine(5); MinLongMetricsImpl impl2 = new MinLongMetricsImpl(); impl2.combine(2); impl2.combine(6); impl.combine(impl2); Assert.assertEquals(2, impl.getValue()); }