Package net.ME1312.Galaxi.Library.Map
Class ObjectMap<K>
java.lang.Object
net.ME1312.Galaxi.Library.Map.ObjectMap<K>
- Type Parameters:
K
- Key Type
- Direct Known Subclasses:
YAMLSection
Object Map Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Remove all Objects from this Mapclone()
Clone this Mapboolean
Check if a Handle existsboolean
get()
Get a copy of the original Object MapGet an Object by HandleGet an Object by HandleGet an Object by Handleget
(K handle, ObjectMapValue<K> def) Get an Object by HandlegetBoolean
(K handle) Get a Boolean by HandlegetBoolean
(K handle, Boolean def) Get a Boolean by HandlegetBoolean
(K handle, Supplier<Boolean> def) Get a Boolean by HandlegetBooleanList
(K handle) Get a Boolean List by HandlegetBooleanList
(K handle, Supplier<? extends List<Boolean>> def) Get a Boolean List by HandlegetBooleanList
(K handle, List<Boolean> def) Get a Boolean List by HandleGet a Double by HandleGet a Double by HandleGet a Double by HandlegetDoubleList
(K handle) Get a Double List by HandlegetDoubleList
(K handle, Supplier<? extends List<Double>> def) Get a Double List by HandlegetDoubleList
(K handle, List<Double> def) Get a Double List by HandleGet the EntriesGet a Float by HandleGet a Float by HandleGet a Float by HandlegetFloatList
(K handle) Get a Float List by HandlegetFloatList
(K handle, Supplier<? extends List<Float>> def) Get a Float List by HandlegetFloatList
(K handle, List<Float> def) Get a Float List by HandleGet an Integer by HandleGet an Integer by HandleGet an Integer by HandlegetIntList
(K handle) Get an Integer List by HandlegetIntList
(K handle, Supplier<? extends List<Integer>> def) Get an Integer List by HandlegetIntList
(K handle, List<Integer> def) Get an Integer List by HandlegetKeys()
Get the KeysList<? extends ObjectMapValue<K>>
Get a List by HandleList<? extends ObjectMapValue<K>>
getList
(K handle, Collection<?> def) Get a List by HandleList<? extends ObjectMapValue<K>>
getList
(K handle, Supplier<? extends Collection<?>> def) Get a List by HandleList<? extends ObjectMapValue<K>>
getList
(K handle, List<? extends ObjectMapValue<K>> def) Get a List by HandleGet a Long by HandleGet a Long by HandleGet a Long by HandlegetLongList
(K handle) Get a Long List by HandlegetLongList
(K handle, Supplier<? extends List<Long>> def) Get a Long List by HandlegetLongList
(K handle, List<Long> def) Get a Long List by HandleGet an Object Map by HandleGet an Object Map by HandleGet an Object Map by HandleGet an Object Map by HandlegetMapList
(K handle) Get an Object Map List by HandlegetMapList
(K handle, Collection<? extends Map<? extends K, ?>> def) Get an Object Map List by HandleGet an Object Map List by HandlegetMapList
(K handle, List<? extends ObjectMap<? extends K>> def) Get an Object Map List by HandleGet an Object by HandleGet an Object by HandleGet an Object by HandleList<?>
getObjectList
(K handle) Get an Object List by HandleList<?>
getObjectList
(K handle, Supplier<? extends List<?>> def) Get an Object List by HandleList<?>
getObjectList
(K handle, List<?> def) Get an Object List by HandleGo up a level in the config (or null if this is the top layer)Get a Short by HandleGet a Short by HandleGet a Short by HandlegetShortList
(K handle) Get a Short List by HandlegetShortList
(K handle, Supplier<? extends List<Short>> def) Get a Short List by HandlegetShortList
(K handle, List<Short> def) Get a Short List by HandleGet a String by HandleGet a String by HandleGet a String by HandlegetStringList
(K handle) Get a String List by HandlegetStringList
(K handle, Supplier<? extends List<String>> def) Get a String List by HandlegetStringList
(K handle, List<String> def) Get a String List by HandleGet a UUID by HandleGet a UUID by HandleGet a UUID by HandlegetUUIDList
(K handle) Get a UUID List by HandlegetUUIDList
(K handle, Supplier<? extends List<UUID>> def) Get a UUID List by HandlegetUUIDList
(K handle, List<UUID> def) Get a UUID List by HandleCollection<? extends ObjectMapValue<K>>
Get the ValuesgetVersion
(K handle) Get a Version by HandlegetVersion
(K handle, Supplier<Version> def) Get a Version by HandlegetVersion
(K handle, Version def) Get a Version by HandlegetVersionList
(K handle) Get a Version List by HandlegetVersionList
(K handle, Supplier<? extends List<Version>> def) Get a Version List by HandlegetVersionList
(K handle, List<Version> def) Get a Version List by Handleboolean
Check if object is a Boolean by Handleboolean
Check if object is a List by Handleboolean
Check if object is an Object Map by Handleboolean
Check if object is Null by Handleboolean
Check if object is a Number by Handleboolean
Check if object is a String by Handleboolean
Check if object is a UUID by Handle<T> ObjectMap<T>
key()
Change the Key type of this mapvoid
Remove an Object by Handlevoid
Set an Object into this Map without overwriting the existing valuevoid
Set an Object into this Map without overwriting the existing valuevoid
safeSetAll
(Map<? extends K, ?> values) Set all Objects into this Map without overwriting existing valuesvoid
safeSetAll
(ObjectMap<? extends K> values) Copy all Objects to this Map without overwriting existing valuesvoid
Set an Object into this Mapvoid
Set all Objects into this Mapvoid
Copy all Objects to this MaptoString()
-
Constructor Details
-
ObjectMap
public ObjectMap()Creates an empty Object Map -
ObjectMap
Creates an Object Map from Map Contents- Parameters:
map
- Map
-
ObjectMap
Creates an Object Map from Map Contents- Parameters:
map
- Map
-
-
Method Details
-
get
Get a copy of the original Object Map- Returns:
- Object Map
-
clone
Clone this Map- Returns:
- Map Clone
-
getParent
Go up a level in the config (or null if this is the top layer)- Returns:
- Super Map
-
key
Change the Key type of this map- Type Parameters:
T
- Key Type- Returns:
- Object Map
-
getKeys
Get the Keys- Returns:
- KeySet
-
getValues
Get the Values- Returns:
- Values
-
getEntries
Get the Entries- Returns:
- Entries
-
contains
Check if a Handle exists- Parameters:
handle
- Handle- Returns:
- if that handle exists
-
set
Set an Object into this Map- Parameters:
handle
- Handlevalue
- Value
-
safeSet
Set an Object into this Map without overwriting the existing value- Parameters:
handle
- Handlevalue
- Value
-
safeSet
Set an Object into this Map without overwriting the existing value- Parameters:
handle
- Handlevalue
- Value
-
setAll
Set all Objects into this Map- Parameters:
values
- Map to set
-
safeSetAll
Set all Objects into this Map without overwriting existing values- Parameters:
values
- Map to set
-
setAll
Copy all Objects to this Map- Parameters:
values
- Object Map to merge
-
safeSetAll
Copy all Objects to this Map without overwriting existing values- Parameters:
values
- Object Map to merge
-
remove
Remove an Object by Handle- Parameters:
handle
- Handle
-
clear
public void clear()Remove all Objects from this Map -
get
Get an Object by Handle- Parameters:
handle
- Handle- Returns:
- Object
-
get
Get an Object by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object
-
get
Get an Object by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object
-
get
Get an Object by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object
-
getList
Get a List by Handle- Parameters:
handle
- Handle- Returns:
- Object
-
getList
Get a List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object List
-
getList
Get a List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object List
-
getList
Get a List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object List
-
getObject
Get an Object by Handle- Parameters:
handle
- Handle- Returns:
- Object
-
getObject
Get an Object by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object
-
getObject
Get an Object by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object
-
getObjectList
Get an Object List by Handle- Parameters:
handle
- Handle- Returns:
- Object List
-
getObjectList
Get an Object List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object List
-
getObjectList
Get an Object List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object List
-
getBoolean
Get a Boolean by Handle- Parameters:
handle
- Handle- Returns:
- Boolean
-
getBoolean
Get a Boolean by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Boolean
-
getBoolean
Get a Boolean by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Boolean
-
getBooleanList
Get a Boolean List by Handle- Parameters:
handle
- Handle- Returns:
- Boolean List
-
getBooleanList
Get a Boolean List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Boolean List
-
getBooleanList
Get a Boolean List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Boolean List
-
getMap
Get an Object Map by Handle- Parameters:
handle
- Handle- Returns:
- Object Map
-
getMap
Get an Object Map by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map
-
getMap
Get an Object Map by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map
-
getMap
Get an Object Map by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map
-
getMapList
Get an Object Map List by Handle- Parameters:
handle
- Handle- Returns:
- Object Map List
-
getMapList
public List<? extends ObjectMap<K>> getMapList(K handle, Collection<? extends Map<? extends K, ?>> def) Get an Object Map List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map List
-
getMapList
public List<? extends ObjectMap<K>> getMapList(K handle, List<? extends ObjectMap<? extends K>> def) Get an Object Map List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map List
-
getMapList
public List<? extends ObjectMap<K>> getMapList(K handle, Supplier<? extends List<? extends ObjectMap<? extends K>>> def) Get an Object Map List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Object Map List
-
getDouble
Get a Double by Handle- Parameters:
handle
- Handle- Returns:
- Double
-
getDouble
Get a Double by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Double
-
getDouble
Get a Double by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Double
-
getDoubleList
Get a Double List by Handle- Parameters:
handle
- Handle- Returns:
- Double List
-
getDoubleList
Get a Double List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Double List
-
getDoubleList
Get a Double List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Double List
-
getFloat
Get a Float by Handle- Parameters:
handle
- Handle- Returns:
- Float
-
getFloat
Get a Float by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Float
-
getFloat
Get a Float by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Float
-
getFloatList
Get a Float List by Handle- Parameters:
handle
- Handle- Returns:
- Float List
-
getFloatList
Get a Float List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Float List
-
getFloatList
Get a Float List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Float List
-
getInt
Get an Integer by Handle- Parameters:
handle
- Handle- Returns:
- Integer
-
getInt
Get an Integer by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Integer
-
getInt
Get an Integer by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Integer
-
getIntList
Get an Integer List by Handle- Parameters:
handle
- Handle- Returns:
- Integer List
-
getIntList
Get an Integer List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Integer List
-
getIntList
Get an Integer List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Integer List
-
getLong
Get a Long by Handle- Parameters:
handle
- Handle- Returns:
- Long
-
getLong
Get a Long by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Long
-
getLong
Get a Long by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Long
-
getLongList
Get a Long List by Handle- Parameters:
handle
- Handle- Returns:
- Long List
-
getLongList
Get a Long List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Long List
-
getLongList
Get a Long List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Long List
-
getShort
Get a Short by Handle- Parameters:
handle
- Handle- Returns:
- Short
-
getShort
Get a Short by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Short
-
getShort
Get a Short by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Short
-
getShortList
Get a Short List by Handle- Parameters:
handle
- Handle- Returns:
- Short List
-
getShortList
Get a Short List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Short List
-
getShortList
Get a Short List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Short List
-
getString
Get a String by Handle- Parameters:
handle
- Handle- Returns:
- String
-
getString
Get a String by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- String
-
getString
Get a String by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- String
-
getStringList
Get a String List by Handle- Parameters:
handle
- Handle- Returns:
- String List
-
getStringList
Get a String List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- String List
-
getStringList
Get a String List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- String List
-
getUUID
Get a UUID by Handle- Parameters:
handle
- Handle- Returns:
- UUID
-
getUUID
Get a UUID by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- UUID
-
getUUID
Get a UUID by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- UUID
-
getUUIDList
Get a UUID List by Handle- Parameters:
handle
- Handle- Returns:
- UUID List
-
getUUIDList
Get a UUID List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- UUID List
-
getUUIDList
Get a UUID List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- UUID List
-
getVersion
Get a Version by Handle- Parameters:
handle
- Handle- Returns:
- Version
-
getVersion
Get a Version by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Version
-
getVersion
Get a Version by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Version
-
getVersionList
Get a Version List by Handle- Parameters:
handle
- Handle- Returns:
- Version List
-
getVersionList
Get a Version List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Version List
-
getVersionList
Get a Version List by Handle- Parameters:
handle
- Handledef
- Default- Returns:
- Version List
-
isNull
Check if object is Null by Handle- Parameters:
handle
- Handle- Returns:
- Object Null Status
-
isBoolean
Check if object is a Boolean by Handle- Parameters:
handle
- Handle- Returns:
- Object Boolean Status
-
isMap
Check if object is an Object Map by Handle- Parameters:
handle
- Handle- Returns:
- Object Map Status
-
isList
Check if object is a List by Handle- Parameters:
handle
- Handle- Returns:
- Object List Status
-
isNumber
Check if object is a Number by Handle- Parameters:
handle
- Handle- Returns:
- Number Status
-
isString
Check if object is a String by Handle- Parameters:
handle
- Handle- Returns:
- Object String Status
-
isUUID
Check if object is a UUID by Handle- Parameters:
handle
- Handle- Returns:
- Object UUID Status
-
equals
-
toString
-