package org.javers.common.collections;

import org.javers.common.reflection.ReflectionUtil;
import java.math.BigDecimal;
import java.net.URI;
import java.net.URL;
import java.util.Currency;
import java.util.UUID;

/**
 * @author bartosz.walacik
 */
public class WellKnownValueTypes {
    private static final Class<?>[] VALUE_TYPES = {
            BigDecimal.class,
            ThreadLocal.class,
            UUID.class,
            Currency.class,
            URI.class,
            URL.class
    };

    public static Class<?>[] getValueTypes() {
        return VALUE_TYPES;
    }

    public static boolean isValueType(Object object) {
        if (object == null) {
            return false;
        }
        return  isValueType(object.getClass());
    }

    private static boolean isValueType(Class clazz) {
        return ReflectionUtil.isAssignableFromAny(clazz, VALUE_TYPES);
    }
}

@@ -114,16 +114,45 @@
 ecimal;%0A
+import java.math.BigInteger;%0A
 import j
@@ -380,32 +380,62 @@
 gDecimal.class,%0A
+            BigInteger.class,%0A
             Thre

update wellknown types to include BigInteger