MOMutableTableModel<R>
DefaultMOMutableTableModel
, DefaultMOTableModel
, UsmMIB.UsmTableModel
public interface MOTableModel<R extends MOTableRow>
MOTableModel
interface defines the base table
model interface needed for MOTable
s. This model can be used
for read-only and read-write SNMP conceptual tables. For read-create tables
the MOMutableTableModel
should be used instead.Modifier and Type | Method | Description |
---|---|---|
boolean |
containsRow(org.snmp4j.smi.OID index) |
Checks whether this table model contains a row with the specified index.
|
org.snmp4j.smi.OID |
firstIndex() |
Returns the first row index in this model.
|
R |
firstRow() |
Returns the first row contained in this model.
|
int |
getColumnCount() |
Returns the number of columns currently in this table model.
|
R |
getRow(org.snmp4j.smi.OID index) |
Gets the row with the specified index.
|
int |
getRowCount() |
Returns the number of rows currently in this table model.
|
boolean |
isEmpty() |
Returns
true if the table model contains no rows. |
java.util.Iterator<R> |
iterator() |
Returns an iterator over the rows in this table model.
|
org.snmp4j.smi.OID |
lastIndex() |
Returns the last row index in this model.
|
R |
lastRow() |
Returns the last row contained in this model.
|
java.util.Iterator<R> |
tailIterator(org.snmp4j.smi.OID lowerBound) |
Returns an iterator on a view of the rows of this table model
whose index values are greater or equal
lowerBound . |
int getColumnCount()
int getRowCount()
boolean isEmpty()
true
if the table model contains no rows.true
if the table model contains no rows.boolean containsRow(org.snmp4j.smi.OID index)
index
- the index OID of the row to search.true
if this model has a row of with index
index
or false
otherwise.R getRow(org.snmp4j.smi.OID index)
index
- the row index.MOTableRow
with the specified index and
null
if no such row exists.java.util.Iterator<R> iterator()
Iterator
returning MOTableRow
instances.java.util.Iterator<R> tailIterator(org.snmp4j.smi.OID lowerBound)
lowerBound
.lowerBound
- the lower bound index (inclusive). If lowerBound
is
null
the returned iterator is the same as returned by
iterator()
.Iterator
over theorg.snmp4j.smi.OID lastIndex()
org.snmp4j.smi.OID firstIndex()
R firstRow()
MOTableRow
with the smallest index or null
if the model is empty.R lastRow()
MOTableRow
with the greatest index or null
if the model is empty.Copyright © 2018 SNMP4J.org. All rights reserved.