/** * Check if an object is copyable using the {@link #copy(Object)} method. * @param thing: the object that needs to be copied * @return: true if {@link CopyHelper} can copy this thing, false otherwise */ public static boolean isCopyable(Object thing) { if ( (thing instanceof Copyable) || (thing instanceof byte[]) || (isImmutableType(thing)) ) { return true; } return false; }
/** * Check if an object is copyable using the {@link #copy(Object)} method. * @param thing: the object that needs to be copied * @return: true if {@link CopyHelper} can copy this thing, false otherwise */ public static boolean isCopyable(Object thing) { if ( (thing instanceof Copyable) || (thing instanceof byte[]) || (isImmutableType(thing)) ) { return true; } return false; }