MatchRecord Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.textanalytics.models.MatchRecord

public class MatchRecord

The MatchRecord model.

Method Summary

Modifier and Type Method and Description
Integer length()

Get the length value.

Integer offset()

Get the offset value.

String text()

Get the text value.

MatchRecord withLength(Integer length)

Set the length value.

MatchRecord withOffset(Integer offset)

Set the offset value.

MatchRecord withText(String text)

Set the text value.

Method Details

length

public Integer length()

Get the length value.

Returns:

the length value

offset

public Integer offset()

Get the offset value.

Returns:

the offset value

text

public String text()

Get the text value.

Returns:

the text value

withLength

public MatchRecord withLength(Integer length)

Set the length value.

Parameters:

length - the length value to set

Returns:

the MatchRecord object itself.

withOffset

public MatchRecord withOffset(Integer offset)

Set the offset value.

Parameters:

offset - the offset value to set

Returns:

the MatchRecord object itself.

withText

public MatchRecord withText(String text)

Set the text value.

Parameters:

text - the text value to set

Returns:

the MatchRecord object itself.

Applies to