@Test public void clearWrappers(){ Boxer.clearWrappers(); Assertions.assertThat(Boxer.from(new HashMap<String, Object>())) .isNull(); }
public static void clearWrappers(){ wrappers.clear(); }
Boxer { public static void clearWrappers(){ wrappers.clear(); } }
Boxer { public static void clearWrappers(){ wrappers.clear(); } Boxer(S instance); }
Boxer { public static void clearWrappers(){ wrappers.clear(); } Boxer(S instance); @SuppressWarnings("unchecked") static Boxer<T> from(T object); static void registerWrapper(Class<? extends Boxer> wrapper, Class clazz); static Class removeWrapper(Class<? extends Boxer> clazz); static Class<? extends Boxer> removeWrapperForType(Class clazz); static void clearWrappers(); abstract void add(String key, Object value); abstract void addArray(String key, Object[] value); abstract void addList(String key, List<?> value); abstract void addEnum(String key, Enum value); abstract void addEnumArray(String key, Enum[] value); abstract void addEnumList(String key, List<? extends Enum> value); abstract void addString(String key, String value); abstract void addStringArray(String key, String[] value); abstract void addStringList(String key, List<String> value); abstract void addBoolean(String key, boolean value); abstract void addBooleanArray(String key, boolean[] value); abstract void addBooleanList(String key, List<Boolean> value); abstract void addByte(String key, byte value); abstract void addByteArray(String key, byte[] value); abstract void addByteList(String key, List<Byte> value); abstract void addChar(String key, char value); abstract void addCharArray(String key, char[] value); abstract void addCharList(String key, List<Character> value); abstract void addShort(String key, short value); abstract void addShortArray(String key, short[] value); abstract void addShortList(String key, List<Short> value); abstract void addInt(String key, int value); abstract void addIntArray(String key, int[] value); abstract void addIntList(String key, List<Integer> value); abstract void addLong(String key, long value); abstract void addLongArray(String key, long[] value); abstract void addLongList(String key, List<Long> value); abstract void addDouble(String key, double value); abstract void addDoubleArray(String key, double[] value); abstract void addDoubleList(String key, List<Double> value); abstract void addFloat(String key, float value); abstract void addFloatArray(String key, float[] value); abstract void addFloatList(String key, List<Float> value); abstract T get(String key, Class<T> clazz); abstract T[] getArray(String key, Class<T> clazz); abstract E getList(String key, Class<T> clazz, Class<E> listtype); abstract T getEnum(String key, Class<T> clazz); abstract T[] getEnumArray(String key, Class<T> clazz); abstract List<T> getEnumList(String key, Class<T> clazz, Class<E> listtype); abstract String getString(String key); abstract String[] getStringArray(String key); abstract T getStringList(String key, Class<T> listtype); abstract boolean getBoolean(String key); abstract boolean[] getBooleanArray(String key); abstract T getBooleanList(String key, Class<T> listtype); abstract byte getByte(String key); abstract byte[] getByteArray(String key); abstract T getByteList(String key, Class<T> listtype); abstract char getChar(String key); abstract char[] getCharArray(String key); abstract T getCharList(String key, Class<T> listtype); abstract short getShort(String key); abstract short[] getShortArray(String key); abstract T getShortList(String key, Class<T> listtype); abstract int getInt(String key); abstract int[] getIntArray(String key); abstract T getIntList(String key, Class<T> listtype); abstract long getLong(String key); abstract long[] getLongArray(String key); abstract T getLongList(String key, Class<T> listtype); abstract double getDouble(String key); abstract double[] getDoubleArray(String key); abstract T getDoubleList(String key, Class<T> listtype); abstract float getFloat(String key); abstract float[] getFloatArray(String key); abstract T getFloatList(String key, Class<T> listtype); }
Boxer { public static void clearWrappers(){ wrappers.clear(); } Boxer(S instance); @SuppressWarnings("unchecked") static Boxer<T> from(T object); static void registerWrapper(Class<? extends Boxer> wrapper, Class clazz); static Class removeWrapper(Class<? extends Boxer> clazz); static Class<? extends Boxer> removeWrapperForType(Class clazz); static void clearWrappers(); abstract void add(String key, Object value); abstract void addArray(String key, Object[] value); abstract void addList(String key, List<?> value); abstract void addEnum(String key, Enum value); abstract void addEnumArray(String key, Enum[] value); abstract void addEnumList(String key, List<? extends Enum> value); abstract void addString(String key, String value); abstract void addStringArray(String key, String[] value); abstract void addStringList(String key, List<String> value); abstract void addBoolean(String key, boolean value); abstract void addBooleanArray(String key, boolean[] value); abstract void addBooleanList(String key, List<Boolean> value); abstract void addByte(String key, byte value); abstract void addByteArray(String key, byte[] value); abstract void addByteList(String key, List<Byte> value); abstract void addChar(String key, char value); abstract void addCharArray(String key, char[] value); abstract void addCharList(String key, List<Character> value); abstract void addShort(String key, short value); abstract void addShortArray(String key, short[] value); abstract void addShortList(String key, List<Short> value); abstract void addInt(String key, int value); abstract void addIntArray(String key, int[] value); abstract void addIntList(String key, List<Integer> value); abstract void addLong(String key, long value); abstract void addLongArray(String key, long[] value); abstract void addLongList(String key, List<Long> value); abstract void addDouble(String key, double value); abstract void addDoubleArray(String key, double[] value); abstract void addDoubleList(String key, List<Double> value); abstract void addFloat(String key, float value); abstract void addFloatArray(String key, float[] value); abstract void addFloatList(String key, List<Float> value); abstract T get(String key, Class<T> clazz); abstract T[] getArray(String key, Class<T> clazz); abstract E getList(String key, Class<T> clazz, Class<E> listtype); abstract T getEnum(String key, Class<T> clazz); abstract T[] getEnumArray(String key, Class<T> clazz); abstract List<T> getEnumList(String key, Class<T> clazz, Class<E> listtype); abstract String getString(String key); abstract String[] getStringArray(String key); abstract T getStringList(String key, Class<T> listtype); abstract boolean getBoolean(String key); abstract boolean[] getBooleanArray(String key); abstract T getBooleanList(String key, Class<T> listtype); abstract byte getByte(String key); abstract byte[] getByteArray(String key); abstract T getByteList(String key, Class<T> listtype); abstract char getChar(String key); abstract char[] getCharArray(String key); abstract T getCharList(String key, Class<T> listtype); abstract short getShort(String key); abstract short[] getShortArray(String key); abstract T getShortList(String key, Class<T> listtype); abstract int getInt(String key); abstract int[] getIntArray(String key); abstract T getIntList(String key, Class<T> listtype); abstract long getLong(String key); abstract long[] getLongArray(String key); abstract T getLongList(String key, Class<T> listtype); abstract double getDouble(String key); abstract double[] getDoubleArray(String key); abstract T getDoubleList(String key, Class<T> listtype); abstract float getFloat(String key); abstract float[] getFloatArray(String key); abstract T getFloatList(String key, Class<T> listtype);  }