@Test public void testEmpty() { assertThat(prune(ImmutableList.of(), 5), empty()); }
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; }