V - Value type.@Experimental public class IndexedValue<V> extends Object
This class is used to represent results from commands like ARSCAN and ARGREP WITHVALUES, which return
alternating index/value pairs.
| Constructor and Description |
|---|
IndexedValue(long index,
V value)
Creates a new
IndexedValue. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getIndex()
Gets the array index.
|
V |
getValue()
Gets the value at the index.
|
int |
hashCode() |
String |
toString() |
public IndexedValue(long index,
V value)
IndexedValue.index - the array index.value - the value at that index.public long getIndex()
public V getValue()
null.Copyright © 2026 lettuce.io. All rights reserved.