package com.onaro.util.jfc.tables.filter.matcher; import java.util.*; public interface FilterMatcher { /** * Tests if a value (a cell in the table) matches the "filter by" expression and should be displayed. * @param value the value to test * @return true if, according to this filter, the value should be displayed */ public boolean isAccepted(Object value); /** * Enable renders to highlight parts of the the filtered value * If the pattern appear more than once, the ranges of all those places will be returned * @param value the filtered value * @return ranges that mathes the filter pattern in the value */ public List getAcceptedRange(Object value); }