Package org.aoju.bus.setting.format
Class CommentFormatter
java.lang.Object
org.aoju.bus.setting.format.AbstractFormatter<IniComment>
org.aoju.bus.setting.format.CommentFormatter
- All Implemented Interfaces:
ElementFormatter<IniComment>
将字符串值格式设置为
IniComment- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck this value.this method will not check value, so you shouldElementFormatter.check(String)first.Methods inherited from class org.aoju.bus.setting.format.AbstractFormatter
getCommentElementFormatter, setCommentElementFormatter
-
Constructor Details
-
CommentFormatter
public CommentFormatter(char startChar) -
CommentFormatter
public CommentFormatter()
-
-
Method Details
-
format
Description copied from interface:ElementFormatterthis method will not check value, so you shouldElementFormatter.check(String)first. However, not checking will not necessarily report an error, but may result in non-compliance.- Parameters:
value- a String valueline- line number- Returns:
ElementFormatter, can not be null.
-
check
Description copied from interface:ElementFormattercheck this value.- Parameters:
value- value- Returns:
- true if can.
-