SortedValue Class
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. SortedValue
- com.
public class SortedValue
A value that can be sorted and still refer to its original position with a source array.
Constructor Summary
| Constructor | Description |
|---|---|
| SortedValue(String withValue, int withIndex) |
Creates a sort value. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| int |
getIndex()
Gets the values original position within its unsorted array. |
| java.lang.String |
getValue()
Gets the value that will be sorted. |
| void |
setIndex(int withIndex)
Sets the values original position within its unsorted array. |
| void |
setValue(String withValue)
Sets the value that will be sorted. |
Methods inherited from java.lang.Object
Constructor Details
SortedValue
public SortedValue(String withValue, int withIndex)
Creates a sort value.
Parameters:
Method Details
getIndex
public int getIndex()
Gets the values original position within its unsorted array.
Returns:
getValue
public String getValue()
Gets the value that will be sorted.
Returns:
setIndex
public void setIndex(int withIndex)
Sets the values original position within its unsorted array.
Parameters:
setValue
public void setValue(String withValue)
Sets the value that will be sorted.
Parameters: