MatchRecord Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. language. textanalytics. models. MatchRecord
- com.
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. |
Match |
withLength(Integer length)
Set the length value. |
Match |
withOffset(Integer offset)
Set the offset value. |
Match |
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java