Fact 類別

  • java.lang.Object
    • com.microsoft.bot.schema.Fact

public class Fact

索引鍵/值組的集合。 本節的優點是,索引鍵和值屬性會以默認樣式信息呈現,其中有些分隔符。 因此,開發人員不需要指定樣式資訊。

建構函式摘要

建構函式 Description
Fact()

建立新的事實。

Fact(String withKey, String withValue)

建立新的事實。

方法摘要

修飾詞與類型 方法與描述
java.lang.String getKey()

取得索引鍵值。

java.lang.String getValue()

取得值。

void setKey(String withKey)

設定索引鍵值。

void setValue(String withValue)

設定值。

方法繼承來源 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

建構函式詳細資料

Fact

public Fact()

建立新的事實。

Fact

public Fact(String withKey, String withValue)

建立新的事實。

參數:

withKey - 索引鍵值。
withValue - 值

方法詳細資料

getKey

public String getKey()

取得索引鍵值。

傳回:

索引鍵值

getValue

public String getValue()

取得值。

傳回:

setKey

public void setKey(String withKey)

設定索引鍵值。

參數:

withKey - 要設定的索引鍵值

setValue

public void setValue(String withValue)

設定值。

參數:

withValue - 要設定的值

適用於