diff options
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/states/StateMap.java')
-rw-r--r-- | EssentialsUpdate/src/com/earth2me/essentials/update/states/StateMap.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/states/StateMap.java b/EssentialsUpdate/src/com/earth2me/essentials/update/states/StateMap.java new file mode 100644 index 000000000..a2cf7b719 --- /dev/null +++ b/EssentialsUpdate/src/com/earth2me/essentials/update/states/StateMap.java @@ -0,0 +1,17 @@ +package com.earth2me.essentials.update.states; + +import java.util.LinkedHashMap; + + +public class StateMap extends LinkedHashMap<Class<? extends AbstractState>, AbstractState> +{ + public StateMap() + { + super(); + } + + public AbstractState add(AbstractState state) + { + return put(state.getClass(), state); + } +} |