@Test public void testIntegerIsImmutable() { assertTrue(SimpleObjectCopyFactory.isImmutable(((Integer) 123).getClass())); }
static boolean isImmutable(Class<?> clazz) { return String.class == clazz || Number.class.isAssignableFrom(clazz); }
SimpleObjectCopyFactory implements ObjectCopyFactory { static boolean isImmutable(Class<?> clazz) { return String.class == clazz || Number.class.isAssignableFrom(clazz); } }
SimpleObjectCopyFactory implements ObjectCopyFactory { static boolean isImmutable(Class<?> clazz) { return String.class == clazz || Number.class.isAssignableFrom(clazz); }  }
SimpleObjectCopyFactory implements ObjectCopyFactory { static boolean isImmutable(Class<?> clazz) { return String.class == clazz || Number.class.isAssignableFrom(clazz); }  @Override ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz); @SuppressWarnings("unchecked") @Override ObjectTransformer<T, T> createCopyTransformer(
    Class<T> clazz, ClassLoader classLoader); }
SimpleObjectCopyFactory implements ObjectCopyFactory { static boolean isImmutable(Class<?> clazz) { return String.class == clazz || Number.class.isAssignableFrom(clazz); }  @Override ObjectTransformer<T, T> createCopyTransformer(Class<T> clazz); @SuppressWarnings("unchecked") @Override ObjectTransformer<T, T> createCopyTransformer(
    Class<T> clazz, ClassLoader classLoader);  }