Module org.snmp4j.agent
Package org.snmp4j.agent.mo.snmp
Class RowStatus.ActiveRowsFilter<R extends MOTableRow>
- java.lang.Object
-
- org.snmp4j.agent.mo.snmp.RowStatus.ActiveRowsFilter<R>
-
- All Implemented Interfaces:
MOTableRowFilter<R>
- Enclosing class:
- RowStatus<R extends MOTableRow>
public static class RowStatus.ActiveRowsFilter<R extends MOTableRow> extends Object implements MOTableRowFilter<R>
TheActiveRowsFilter
is aMOTableRowFilter
that returns only the active rows of a table with a RowStatus column.- Version:
- 1.0
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description ActiveRowsFilter(int rowStatusColumnIndex)
Creates an active row filter by specifying the RowStatus column's index in the target table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
passesFilter(R row)
Checks whether the supplied row passes the filter criteria implemented by this row filter.
-
-
-
Constructor Detail
-
ActiveRowsFilter
public ActiveRowsFilter(int rowStatusColumnIndex)
Creates an active row filter by specifying the RowStatus column's index in the target table.- Parameters:
rowStatusColumnIndex
- the column index (zero-based) of the RowStatus column on behalf the filtering is done.
-
-
Method Detail
-
passesFilter
public boolean passesFilter(R row)
Description copied from interface:MOTableRowFilter
Checks whether the supplied row passes the filter criteria implemented by this row filter.- Specified by:
passesFilter
in interfaceMOTableRowFilter<R extends MOTableRow>
- Parameters:
row
- aMOTableRow
instance.- Returns:
true
if the row passes the filter orfalse
if not.
-
-