@Test public void adjust() { Adjuster adjuster = new Adjuster() { @Override protected Span adjust(Span span) { return ApplyTimestampAndDuration.apply(span); } }; assertThat(adjuster.adjust(TestObjects.TRACE)) .extracting(s -> s.timestamp, s -> s.duration) .doesNotContainNull(); }
public Iterable<Span> adjust(final Iterable<Span> trace) { if (trace == null) throw new NullPointerException("trace was null"); return () -> new AdjustingIterator(this, trace.iterator()); }
Adjuster implements Serializable { public Iterable<Span> adjust(final Iterable<Span> trace) { if (trace == null) throw new NullPointerException("trace was null"); return () -> new AdjustingIterator(this, trace.iterator()); } }
Adjuster implements Serializable { public Iterable<Span> adjust(final Iterable<Span> trace) { if (trace == null) throw new NullPointerException("trace was null"); return () -> new AdjustingIterator(this, trace.iterator()); }  }
Adjuster implements Serializable { public Iterable<Span> adjust(final Iterable<Span> trace) { if (trace == null) throw new NullPointerException("trace was null"); return () -> new AdjustingIterator(this, trace.iterator()); }  Iterable<Span> adjust(final Iterable<Span> trace); }
Adjuster implements Serializable { public Iterable<Span> adjust(final Iterable<Span> trace) { if (trace == null) throw new NullPointerException("trace was null"); return () -> new AdjustingIterator(this, trace.iterator()); }  Iterable<Span> adjust(final Iterable<Span> trace);  }