Class ArgumentMap
- java.lang.Object
-
- me.nemo_64.betterinputs.api.util.argument.ArgumentMap
-
public final class ArgumentMap extends Object
-
-
Constructor Summary
Constructors Constructor Description ArgumentMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentMap
clear()
ArgumentMap
clone()
void
copyFrom(ArgumentMap map)
Option<Object>
get(String key)
<E> Option<E>
get(String key, Class<E> type)
Option<Class<?>>
getClass(String key)
<E> Option<Class<? extends E>>
getClass(String key, Class<E> abstraction)
boolean
has(String key)
boolean
has(String key, Class<?> type)
boolean
isEmpty()
ArgumentMap
remove(String key)
Object
require(String key)
<E> E
require(String key, Class<E> type)
Class<?>
requireClass(String key)
<E> Class<? extends E>
requireClass(String key, Class<E> abstraction)
ArgumentMap
set(String key, Object value)
int
size()
void
throwIfMissing()
-
-
-
Method Detail
-
throwIfMissing
public void throwIfMissing() throws NotEnoughArgumentsException
- Throws:
NotEnoughArgumentsException
-
has
public boolean has(String key)
-
set
public ArgumentMap set(String key, Object value)
-
remove
public ArgumentMap remove(String key)
-
clear
public ArgumentMap clear()
-
clone
public ArgumentMap clone()
-
copyFrom
public void copyFrom(ArgumentMap map)
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
-