Lines Matching defs:index

74          * Returns the index that immediately follows the given
75 * <var>index</var>. The returned index is strictly greater
76 * than the given <var>index</var>, and is contained in the table.
77 * <br>If the given <var>index</var> is null, returns the first
78 * index in the table.
79 * <br>If there are no index after the given <var>index</var>,
84 public SnmpOid getNext(SnmpCachedData datas, SnmpOid index) {
90 // the next element whose OID follows the given index.
91 // If `index' is null, the insertion point is -1
94 final int insertion = (index==null)?-1:datas.find(index);
95 if (dbg) log.debug("GCTableFilter","oid="+index+
103 // follows the given `index'. We're going to loop
124 // skip to next index...
130 * Returns the index that immediately follows the given
131 * <var>index</var>. The returned index is strictly greater
132 * than the given <var>index</var>, and is contained in the table.
133 * <br>If the given <var>index</var> is null, returns the first
134 * index in the table.
135 * <br>If there are no index after the given <var>index</var>,
138 public SnmpOid getNext(SnmpTableHandler handler, SnmpOid index) {
142 return getNext((SnmpCachedData)handler, index);
145 SnmpOid next = index;
152 // skip to next index...
158 * Returns the data associated with the given index.
159 * If the given index is not found, null is returned.
161 * the index was not found.
163 public Object getData(SnmpTableHandler handler, SnmpOid index) {
164 final Object value = handler.getData(index);
166 // Behaves as if there was nothing at this index...
172 * Returns true if the given <var>index</var> is present.
174 public boolean contains(SnmpTableHandler handler, SnmpOid index) {
175 if (handler.getData(index) instanceof GarbageCollectorMXBean)
177 // Behaves as if there was nothing at this index...
291 // We know in the case of this table that the index is an integer,
292 // it is thus the first OID arc of the index OID.
294 final long index = oid.getOidArc(0);
303 index));
338 new JvmMemGCEntryImpl((GarbageCollectorMXBean)data,(int)index);