- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<VariableBinding>
-
- org.snmp4j.util.TableUtils.Row
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<VariableBinding>
,java.util.Collection<VariableBinding>
,java.util.List<VariableBinding>
,java.util.RandomAccess
- Enclosing class:
- TableUtils
protected class TableUtils.Row extends java.util.ArrayList<VariableBinding>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
firstNullValue
private OID
index
private boolean
orderError
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumComplete()
OID
getRowIndex()
boolean
hasNullValues()
boolean
isOrderError()
VariableBinding
set(int index, VariableBinding element)
int
setNumComplete(int numberOfColumnsComplete)
Sets the number of columns in the row cache to a new value.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
index
private OID index
-
orderError
private boolean orderError
-
firstNullValue
private int firstNullValue
-
-
Constructor Detail
-
Row
public Row(OID index)
-
-
Method Detail
-
isOrderError
public boolean isOrderError()
-
getRowIndex
public OID getRowIndex()
-
getNumComplete
public int getNumComplete()
-
setNumComplete
public int setNumComplete(int numberOfColumnsComplete)
Sets the number of columns in the row cache to a new value. If the number of columns provided is greater than the number of values in the cache, then columns withnull
value are appended to the cache to fill up the columns until the specified one.- Parameters:
numberOfColumnsComplete
- the number of columns received already.- Returns:
- the number of columns added to the row with
null
values.
-
hasNullValues
public boolean hasNullValues()
-
set
public VariableBinding set(int index, VariableBinding element)
- Specified by:
set
in interfacejava.util.List<VariableBinding>
- Overrides:
set
in classjava.util.ArrayList<VariableBinding>
-
-