org.snmp4j.agent.mo.snmp
Class RowStatus.ActiveRowsFilter<R extends MOTableRow>

java.lang.Object
  extended by org.snmp4j.agent.mo.snmp.RowStatus.ActiveRowsFilter<R>
All Implemented Interfaces:
MOTableRowFilter<R>
Enclosing class:
RowStatus

public static class RowStatus.ActiveRowsFilter<R extends MOTableRow>
extends java.lang.Object
implements MOTableRowFilter<R>

The ActiveRowsFilter is a MOTableRowFilter that returns only the active rows of a table with a RowStatus column.

Version:
1.0
Author:
Frank Fock

Constructor Summary
RowStatus.ActiveRowsFilter(int rowStatusColumnIndex)
          Creates an active row filter by specifying the RowStatus column's index in the target table.
 
Method Summary
 boolean passesFilter(R row)
          Checks whether the supplied row passes the filter criteria implemented by this row filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowStatus.ActiveRowsFilter

public RowStatus.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 interface MOTableRowFilter<R extends MOTableRow>
Parameters:
row - a MOTableRow instance.
Returns:
true if the row passes the filter or false if not.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.