Class AbstractConfig.EntryWrapper
java.lang.Object
com.electronwill.nightconfig.core.AbstractConfig.EntryWrapper
- All Implemented Interfaces:
Config.Entry,UnmodifiableConfig.Entry
- Direct Known Subclasses:
AbstractCommentedConfig.CommentedEntryWrapper
- Enclosing class:
- AbstractConfig
A wrapper around a
Map.Entry<String, Object>.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()<T> TReturns the entry's value without convertingNullObject.NULL_OBJECTtonull.inthashCode()<T> TSets the entry's value.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.electronwill.nightconfig.core.UnmodifiableConfig.Entry
getByte, getByteOrElse, getChar, getCharOrElse, getInt, getIntOrElse, getLong, getLongOrElse, getOptional, getOptionalInt, getOptionalLong, getOrElse, getShort, getShortOrElse, getValue, isNull
-
Field Details
-
mapEntry
-
-
Constructor Details
-
EntryWrapper
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceUnmodifiableConfig.Entry- Returns:
- the entry's key
-
getRawValue
public <T> T getRawValue()Description copied from interface:UnmodifiableConfig.EntryReturns the entry's value without convertingNullObject.NULL_OBJECTtonull.- Specified by:
getRawValuein interfaceUnmodifiableConfig.Entry- Type Parameters:
T- the value's type- Returns:
- the entry's value
-
setValue
Description copied from interface:Config.EntrySets the entry's value.- Specified by:
setValuein interfaceConfig.Entry- Type Parameters:
T- the type of the old value- Parameters:
value- the value to set- Returns:
- the previous value
-
equals
-
hashCode
public int hashCode()
-