public static class SubstringFormatEntry.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubstringFormatEntry |
build() |
SubstringFormatEntry.Builder |
copy(SubstringFormatEntry model) |
SubstringFormatEntry.Builder |
description(String description) |
SubstringFormatEntry.Builder |
length(Integer length)
The number of characters that should be there in the substring.
|
SubstringFormatEntry.Builder |
startPosition(Integer startPosition)
The starting position in the original string from where the substring should be
extracted.
|
public SubstringFormatEntry.Builder description(String description)
public SubstringFormatEntry.Builder startPosition(Integer startPosition)
The starting position in the original string from where the substring should be extracted. It can be either a positive or a negative integer. If It’s negative, the counting starts from the end of the string.
startPosition
- the value to setpublic SubstringFormatEntry.Builder length(Integer length)
The number of characters that should be there in the substring. It should be an integer and greater than zero.
length
- the value to setpublic SubstringFormatEntry build()
public SubstringFormatEntry.Builder copy(SubstringFormatEntry model)
Copyright © 2016–2024. All rights reserved.