@Test public void testPreferDispositionOverNode() { assertThat( prune(ImmutableList.of(TRACE_A_ACCEPTED, TRACE_B_ACCEPTED, TRACE_A_DENIED_IN), 2), equalTo(ImmutableList.of(TRACE_A_ACCEPTED, TRACE_A_DENIED_IN))); }
public static List<Trace> prune(List<Trace> traces, int maxSize) { if (traces.size() <= maxSize) { return traces; } return new TracePruner(traces).prune(maxSize); }
TracePruner { public static List<Trace> prune(List<Trace> traces, int maxSize) { if (traces.size() <= maxSize) { return traces; } return new TracePruner(traces).prune(maxSize); } }
TracePruner { public static List<Trace> prune(List<Trace> traces, int maxSize) { if (traces.size() <= maxSize) { return traces; } return new TracePruner(traces).prune(maxSize); } private  TracePruner(List<Trace> traces); }
TracePruner { public static List<Trace> prune(List<Trace> traces, int maxSize) { if (traces.size() <= maxSize) { return traces; } return new TracePruner(traces).prune(maxSize); } private  TracePruner(List<Trace> traces); static List<Trace> prune(List<Trace> traces, int maxSize); }
TracePruner { public static List<Trace> prune(List<Trace> traces, int maxSize) { if (traces.size() <= maxSize) { return traces; } return new TracePruner(traces).prune(maxSize); } private  TracePruner(List<Trace> traces); static List<Trace> prune(List<Trace> traces, int maxSize); static final int DEFAULT_MAX_TRACES; }