@Test public void isDynamicObject_null_returnsFalse() { assertFalse(InterfaceMap.isDynamicObject(null)); }
public static boolean isDynamicObject(Object object) { if (object == null) { return false; } Class<?> c = object.getClass(); if (isProxyClass(c)) { InvocationHandler handler = getInvocationHandler(object); return handler instanceof BackingMapInvocationHandler; } return false; }
InterfaceMap { public static boolean isDynamicObject(Object object) { if (object == null) { return false; } Class<?> c = object.getClass(); if (isProxyClass(c)) { InvocationHandler handler = getInvocationHandler(object); return handler instanceof BackingMapInvocationHandler; } return false; } }
InterfaceMap { public static boolean isDynamicObject(Object object) { if (object == null) { return false; } Class<?> c = object.getClass(); if (isProxyClass(c)) { InvocationHandler handler = getInvocationHandler(object); return handler instanceof BackingMapInvocationHandler; } return false; } private  InterfaceMap(); }
InterfaceMap { public static boolean isDynamicObject(Object object) { if (object == null) { return false; } Class<?> c = object.getClass(); if (isProxyClass(c)) { InvocationHandler handler = getInvocationHandler(object); return handler instanceof BackingMapInvocationHandler; } return false; } private  InterfaceMap(); @SuppressWarnings("unchecked") static T createInstance(Class<T> interfaceClass, Map<String, Object> backingMap); static T createInstance(Class<T> interfaceClass); static boolean isDynamicObject(Object object); static Class<?> getClass(Object dynamicObject); static Map<String, Object> getBackingMap(Object dynamicObject); }
InterfaceMap { public static boolean isDynamicObject(Object object) { if (object == null) { return false; } Class<?> c = object.getClass(); if (isProxyClass(c)) { InvocationHandler handler = getInvocationHandler(object); return handler instanceof BackingMapInvocationHandler; } return false; } private  InterfaceMap(); @SuppressWarnings("unchecked") static T createInstance(Class<T> interfaceClass, Map<String, Object> backingMap); static T createInstance(Class<T> interfaceClass); static boolean isDynamicObject(Object object); static Class<?> getClass(Object dynamicObject); static Map<String, Object> getBackingMap(Object dynamicObject);  }