public interface CoverWapper
Represents data that can be in any format, such as XML, YAML, Protobuf, etc., structured as a key-value map.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoublefloatintlonggetWappers(String key) booleanbooleanisEmpty()keySet()intsize()
-
Method Details
-
size
int size()- Returns:
- The number of key-value pairs.
-
isEmpty
boolean isEmpty()- Returns:
- True if the map is empty.
-
getWappers
- Parameters:
key- The key name.- Returns:
- The sub-object as a CoverWapper.
-
getArray
- Parameters:
key- The key name.- Returns:
- The sub-array as a CoverArray.
-
getBool
- Parameters:
key- The key name.- Returns:
- The boolean value.
-
getInt
- Parameters:
key- The key name.- Returns:
- The int value.
-
getLong
- Parameters:
key- The key name.- Returns:
- The long value.
-
getFloat
- Parameters:
key- The key name.- Returns:
- The float value.
-
getDouble
- Parameters:
key- The key name.- Returns:
- The double value.
-
getString
- Parameters:
key- The key name.- Returns:
- The String value.
-
has
- Parameters:
key- The key name.- Returns:
- True if the key exists.
-
keySet
- Returns:
- The set of keys.
-