src/main/java/cz/diribet/aqdef/model/AqdefObjectModel.java
/**
	 * Removes all catalog records that do not match the given predicate.
	 *
	 * @param predicate
	 */
Removes all catalog records that do not match the given predicate.
@param predicate
Removes all catalog records that do not match the given predicate . @param predicate
public void filterCatalogRecords(CatalogRecordPredicate predicate) {
		Iterator<Map.Entry<CatalogRecordIndex, CatalogRecordEntries>> iterator = catalogEntries.entrySet().iterator();
		while (iterator.hasNext()) {
			Entry<CatalogRecordIndex, CatalogRecordEntries> entry = iterator.next();
			CatalogRecordEntries catalogRecord = entry.getValue();
			if (!predicate.test(catalogRecord)) {
				iterator.remove();
			}
		}
	}
public void filterCatalogRecords ( CatalogRecordPredicate predicate ) { Iterator < Map . Entry < CatalogRecordIndex , CatalogRecordEntries > > iterator = catalogEntries . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { Entry < CatalogRecordIndex , CatalogRecordEntries > entry = iterator . next ( ) ; CatalogRecordEntries catalogRecord = entry . getValue ( ) ; if ( ! predicate . test ( catalogRecord ) ) { iterator . remove ( ) ; } } }
Removes all catalog records that do not match the given predicate.
Removes all catalog records that do not match the given predicate .