Package org.aoju.bus.setting.magic
Class IniSectionImpl
java.lang.Object
org.aoju.bus.setting.magic.AbstractElement
org.aoju.bus.setting.magic.IniSectionImpl
- All Implemented Interfaces:
Serializable,CharSequence,Iterable<IniProperty>,Collection<IniProperty>,List<IniProperty>,SequencedCollection<IniProperty>,IniElement,IniSection,ProxyList<IniProperty>
Ini file's Section
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIniSectionImpl(String value, int lineNumber) IniSectionImpl(String value, int lineNumber, IniComment comment) IniSectionImpl(String value, String originalValue, int lineNumber) IniSectionImpl(String value, String originalValue, int lineNumber, Supplier<List<IniProperty>> listSupplier) IniSectionImpl(String value, String originalValue, int lineNumber, IniComment comment) IniSectionImpl(String value, String originalValue, int lineNumber, IniComment comment, Supplier<List<IniProperty>> listSupplier) -
Method Summary
Modifier and TypeMethodDescriptiongetList()get IniProperty list. will copy a new list.getList(Supplier<List<IniProperty>> listSupplier) get IniProperty list. will copy a new list.booleanisEmpty()toString, with all iniProperties value.protected StringvalueChanged(String newValue) If thevaluechanged, 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, length, subSequenceMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.aoju.bus.setting.magic.IniElement
clearComment, getComment, getCommentOptional, getOriginalValue, isComment, isProperty, isSection, line, setValue, setValue, toCompleteString, toNoCommentString, toString, valueMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
IniSectionImpl
-
IniSectionImpl
-
IniSectionImpl
public IniSectionImpl(String value, String originalValue, int lineNumber, Supplier<List<IniProperty>> listSupplier) -
IniSectionImpl
-
IniSectionImpl
-
IniSectionImpl
public IniSectionImpl(String value, String originalValue, int lineNumber, IniComment comment, Supplier<List<IniProperty>> listSupplier)
-
-
Method Details
-
valueChanged
If thevaluechanged, change the originalValue- Specified by:
valueChangedin classAbstractElement- Parameters:
newValue- whenvaluechanges, likeAbstractElement.setValue(String)orIniElement.setValue(Function)- Returns:
- new originalValue
-
toPropertiesString
toString, with all iniProperties value.- Specified by:
toPropertiesStringin interfaceIniSection- Returns:
- string with properties value.
-
getList
get IniProperty list. will copy a new list.- Specified by:
getListin interfaceIniSection- Returns:
- list.
-
getList
get IniProperty list. will copy a new list.- Specified by:
getListin interfaceIniSection- Parameters:
listSupplier- ini property list supplier- Returns:
- list.
-
getProxyList
- Specified by:
getProxyListin interfaceProxyList<IniProperty>- Returns:
- the real list.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCharSequence- Specified by:
isEmptyin interfaceCollection<IniProperty>- Specified by:
isEmptyin interfaceIniSection- Specified by:
isEmptyin interfaceList<IniProperty>- Specified by:
isEmptyin interfaceProxyList<IniProperty>
-