Class AbstractCommentedConfig.CommentedEntryWrapper
java.lang.Object
com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
com.electronwill.nightconfig.core.AbstractCommentedConfig.CommentedEntryWrapper
- All Implemented Interfaces:
CommentedConfig.Entry,Config.Entry,UnmodifiableCommentedConfig.Entry,UnmodifiableConfig.Entry
- Enclosing class:
- AbstractCommentedConfig
protected class AbstractCommentedConfig.CommentedEntryWrapper
extends AbstractConfig.EntryWrapper
implements CommentedConfig.Entry
-
Field Summary
Fields inherited from class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
mapEntry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetPath()inthashCode()Removes the entry's comment.setComment(String comment) Sets the entry's comment.Methods inherited from class com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
getKey, getRawValue, setValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.electronwill.nightconfig.core.Config.Entry
setValueMethods inherited from interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
getByte, getByteOrElse, getChar, getCharOrElse, getInt, getIntOrElse, getKey, getLong, getLongOrElse, getOptional, getOptionalInt, getOptionalLong, getOrElse, getRawValue, getShort, getShortOrElse, getValue, isNull
-
Constructor Details
-
CommentedEntryWrapper
-
-
Method Details
-
getPath
-
getComment
- Specified by:
getCommentin interfaceUnmodifiableCommentedConfig.Entry- Returns:
- the entry's comment, may contain several lines
-
setComment
Description copied from interface:CommentedConfig.EntrySets the entry's comment.- Specified by:
setCommentin interfaceCommentedConfig.Entry- Parameters:
comment- the comment to set, may contain several lines.- Returns:
- the previous comment, or
nullif none.
-
removeComment
Description copied from interface:CommentedConfig.EntryRemoves the entry's comment.- Specified by:
removeCommentin interfaceCommentedConfig.Entry- Returns:
- the previous comment, or
nullif none.
-
equals
- Overrides:
equalsin classAbstractConfig.EntryWrapper
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractConfig.EntryWrapper
-