Package org.aoju.bus.setting.magic
Class IniCommentImpl
java.lang.Object
org.aoju.bus.setting.magic.AbstractElement
org.aoju.bus.setting.magic.IniCommentImpl
- All Implemented Interfaces:
Serializable,CharSequence,IniComment,IniElement
Ini file's comment.
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIniCommentImpl(String originalValue, int lineNumber) IniCommentImpl(String value, String originalValue, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionstatic IniCommentImplGet instance only based on valueprotected StringvalueChanged(String newValue) If the value changed, change the originalValueMethods inherited from class org.aoju.bus.setting.magic.AbstractElement
changeValue, charAt, clearComment, getComment, getOriginalValue, length, line, setOriginalValue, setValue, subSequence, toCompleteString, toNoCommentString, toString, trim, valueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, isEmpty, length, subSequenceMethods inherited from interface org.aoju.bus.setting.magic.IniComment
clearComment, getComment, toNoCommentStringMethods inherited from interface org.aoju.bus.setting.magic.IniElement
getCommentOptional, getOriginalValue, isComment, isProperty, isSection, line, setValue, setValue, toCompleteString, toString, value
-
Constructor Details
-
IniCommentImpl
-
IniCommentImpl
-
-
Method Details
-
byValue
Get instance only based on value- Parameters:
value- valuelineNumber- line number- Returns:
- the object
-
valueChanged
If the value changed, change the originalValue- Specified by:
valueChangedin classAbstractElement- Parameters:
newValue- when value changes, likeAbstractElement.setValue(String)orIniElement.setValue(java.util.function.Function)- Returns:
- the object
-