java.lang.Object | |
↳ | sun.management.snmp.util.SnmpCachedData |
![]() |
This class is used to cache table data.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
datas | The table datas, sorted according to the
order in indexes : datas[i]
is the data that corresponds to indexes[i]
|
||||||||||
indexes | The table entry indexes, sorted in ascending order. | ||||||||||
lastUpdated | Time stamp as returned by
System.currentTimeMillis()
|
||||||||||
oidComparator | Compares two SnmpOid. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of SnmpCachedData.
| |||||||||||
Constructs a new instance of SnmpCachedData.
| |||||||||||
Constructs a new instance of SnmpCachedData.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the given index is present.
| |||||||||||
The position of the given index, as returned by
java.util.Arrays.binarySearch()
| |||||||||||
Returns the data associated with the given index.
| |||||||||||
Returns the index that immediately follows the given
index.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The table datas, sorted according to the
order in indexes
: datas[i]
is the data that corresponds to indexes[i]
The table entry indexes, sorted in ascending order.
Constructs a new instance of SnmpCachedData. Instances are immutable.
lastUpdated | Time stamp as returned by
System.currentTimeMillis() |
---|---|
indexes | The table entry indexes, sorted in ascending order. |
datas | The table datas, sorted according to the
order in indexes : datas[i]
is the data that corresponds to
indexes[i]
|
Constructs a new instance of SnmpCachedData. Instances are immutable.
lastUpdated | Time stamp as returned by
System.currentTimeMillis() |
---|---|
indexMap | The table indexed table data, sorted in ascending
order by oidComparator . The keys must be
instances of SnmpOid.
|
Constructs a new instance of SnmpCachedData. Instances are immutable.
lastUpdated | Time stamp as returned by
System.currentTimeMillis() |
---|---|
indexMap | The table indexed table data, sorted in ascending
order by oidComparator . The keys must be
instances of SnmpOid.
|
Returns true if the given index is present.
The position of the given index, as returned by
java.util.Arrays.binarySearch()
Returns the data associated with the given index. If the given index is not found, null is returned. Note that returning null does not necessarily means that the index was not found.
Returns the index that immediately follows the given
index. The returned index is strictly greater
than the given index, and is contained in the table.
If the given index is null, returns the first
index in the table.
If there are no index after the given index,
returns null.