public abstract class UnmodifiableConfigWrapper<C extends UnmodifiableConfig> extends java.lang.Object implements UnmodifiableConfig
UnmodifiableConfig.Entry| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableConfigWrapper(C config) |
| Modifier and Type | Method and Description |
|---|---|
ConfigFormat<?> |
configFormat()
Returns the config's format.
|
boolean |
contains(java.util.List<java.lang.String> path)
Checks if the config contains a value at some path.
|
java.util.Set<? extends UnmodifiableConfig.Entry> |
entrySet()
Returns a Set view of the config's entries.
|
boolean |
equals(java.lang.Object obj) |
<T> T |
getRaw(java.util.List<java.lang.String> path)
Gets a value from the config.
|
int |
hashCode() |
boolean |
isEmpty()
Checks if the config is empty.
|
int |
size()
Gets the size of the config.
|
java.util.Map<java.lang.String,java.lang.Object> |
valueMap()
Returns a Map view of the config's values.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitapply, apply, contains, get, get, getByte, getByte, getByteOrElse, getByteOrElse, getChar, getChar, getCharOrElse, getCharOrElse, getEnum, getEnum, getEnum, getEnum, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getEnumOrElse, getInt, getInt, getIntOrElse, getIntOrElse, getIntOrElse, getIntOrElse, getLong, getLong, getLongOrElse, getLongOrElse, getLongOrElse, getLongOrElse, getOptional, getOptional, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalEnum, getOptionalInt, getOptionalInt, getOptionalLong, getOptionalLong, getOrElse, getOrElse, getOrElse, getOrElse, getRaw, getShort, getShort, getShortOrElse, getShortOrElse, isNull, isNullprotected final C extends UnmodifiableConfig config
protected UnmodifiableConfigWrapper(C config)
public <T> T getRaw(java.util.List<java.lang.String> path)
UnmodifiableConfigNullObject.NULL_OBJECT to null.getRaw in interface UnmodifiableConfigT - the value's typepath - the value's path, each element of the list is a different part of the path.null if there is no such value.public java.util.Map<java.lang.String,java.lang.Object> valueMap()
UnmodifiableConfigvalueMap in interface UnmodifiableConfigpublic java.util.Set<? extends UnmodifiableConfig.Entry> entrySet()
UnmodifiableConfigentrySet in interface UnmodifiableConfigpublic boolean contains(java.util.List<java.lang.String> path)
UnmodifiableConfigcontains in interface UnmodifiableConfigpath - the path to check, each element of the list is a different part of the path.true if the path is associated with a value, false if it's not.public int size()
UnmodifiableConfigsize in interface UnmodifiableConfigpublic boolean isEmpty()
UnmodifiableConfigisEmpty in interface UnmodifiableConfigtrue if the config is empty, false if it contains at least one
element.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ConfigFormat<?> configFormat()
UnmodifiableConfigconfigFormat in interface UnmodifiableConfig