Interface HeaderFormatApplier
-
- All Known Implementing Classes:
HeaderFormatApplierImpl
public interface HeaderFormatApplierA helper interface to allow modifying header formats without needing to search for imports.- Since:
- 2.2.0
- See Also:
HeaderFormat
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcustom(@Nullable java.lang.String begin, @Nullable java.lang.String linePrefix, @Nullable java.lang.String lineSuffix, @Nullable java.lang.String end)Set a custom header format.voiddoubleSlash()Set the header format to use a double-slash prefix.voidprefix(java.lang.String prefix)A header format containing only a prefix for body lines.voidstarSlash()Set the header format to use star-slash, or C-style format.
-
-
-
Method Detail
-
starSlash
void starSlash()
Set the header format to use star-slash, or C-style format.- Since:
- 2.2.0
-
doubleSlash
void doubleSlash()
Set the header format to use a double-slash prefix.- Since:
- 2.2.0
-
prefix
void prefix(java.lang.String prefix)
A header format containing only a prefix for body lines.- Parameters:
prefix- the prefix (no space-padding will be added)- Since:
- 2.2.0
-
custom
void custom(@Nullable @Nullable java.lang.String begin, @Nullable @Nullable java.lang.String linePrefix, @Nullable @Nullable java.lang.String lineSuffix, @Nullable @Nullable java.lang.String end)Set a custom header format.Any parameters may be null, but a null parameter will be of limited use.
- Parameters:
begin- text to put at the beginning of the header blocklinePrefix- text to put at the beginning of every linelineSuffix- text to put at the end of every lineend- text to put at the end of the header block- Since:
- 2.2.0
-
-