List of usage examples for java.util NavigableSet retainAll
boolean retainAll(Collection<?> c);
From source file:eu.ggnet.dwoss.report.entity.ReportLine.java
/** * Calls {@link Collection#retainAll(java.util.Collection) } on a new instance of references and returns the resulting collection. * <p>//from w w w. ja v a 2 s. c o m * @param other the other collection to use as parameter on retainAll. * @return the resulting collection */ public NavigableSet<ReportLine> retainReferences(Collection<ReportLine> other) { NavigableSet<ReportLine> result = getRefrences(); result.retainAll(other); return result; }