Interface IniComment
- All Superinterfaces:
CharSequence,IniElement,Serializable
- All Known Implementing Classes:
IniCommentService
Ini file's comment.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclear comment (if exists).default IniCommentthere may be comments at the end of each element. or null. if this element is comment, return itself. so, nullable, or seeIniElement.getCommentOptional().default StringlikeIniElement.toString(), without comment value(if exists). comment to no comment string?Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, isEmpty, length, subSequenceMethods inherited from interface org.miaixz.bus.setting.metric.ini.IniElement
getCommentOptional, getOriginalValue, isComment, isProperty, isSection, line, setValue, setValue, toCompleteString, toString, value
-
Method Details
-
getComment
there may be comments at the end of each element. or null. if this element is comment, return itself. so, nullable, or seeIniElement.getCommentOptional().- Specified by:
getCommentin interfaceIniElement- Returns:
- comment end of the element or null. if element, return itself.
- See Also:
-
clearComment
default void clearComment()clear comment (if exists).- Specified by:
clearCommentin interfaceIniElement
-
toNoCommentString
likeIniElement.toString(), without comment value(if exists). comment to no comment string? no, return original value.- Specified by:
toNoCommentStringin interfaceIniElement- Returns:
- to string value without comment value.
-