SortedValue Class

  • java.lang.Object
    • com.microsoft.bot.dialogs.choices.SortedValue

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SortedValue

public SortedValue(String withValue, int withIndex)

Creates a sort value.

Parameters:

withValue - The value that will be sorted.
withIndex - The values original position within its unsorted array.

Method Details

getIndex

public int getIndex()

Gets the values original position within its unsorted array.

Returns:

The values original position within its unsorted array.

getValue

public String getValue()

Gets the value that will be sorted.

Returns:

The value that will be sorted.

setIndex

public void setIndex(int withIndex)

Sets the values original position within its unsorted array.

Parameters:

withIndex - The values original position within its unsorted array.

setValue

public void setValue(String withValue)

Sets the value that will be sorted.

Parameters:

withValue - The value that will be sorted.

Applies to