@Test public void unmodifiable() { thrown.expect(UnsupportedOperationException.class); Adjuster adjuster = new Adjuster() { }; Iterable<Span> adjusted = adjuster.adjust(TestObjects.TRACE); adjusted.iterator().remove(); }
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);  }