@Test public void testClone() { XpipeMeta xpipeMeta = getXpipeMeta(); DcMeta dcMeta = xpipeMeta.getDcs().values().iterator().next(); DcMeta clone = MetaClone.clone(dcMeta); Assert.assertEquals(dcMeta, clone); clone.setId(randomString()); Assert.assertNotEquals(dcMeta, clone); }
public static <T extends Serializable> T clone(T obj){ try { return SerializationUtils.clone(obj); }catch (SerializationException e){ logger.error("[clone]", e); throw e; } }
MetaClone { public static <T extends Serializable> T clone(T obj){ try { return SerializationUtils.clone(obj); }catch (SerializationException e){ logger.error("[clone]", e); throw e; } } }
MetaClone { public static <T extends Serializable> T clone(T obj){ try { return SerializationUtils.clone(obj); }catch (SerializationException e){ logger.error("[clone]", e); throw e; } }  }
MetaClone { public static <T extends Serializable> T clone(T obj){ try { return SerializationUtils.clone(obj); }catch (SerializationException e){ logger.error("[clone]", e); throw e; } }  static T clone(T obj); }
MetaClone { public static <T extends Serializable> T clone(T obj){ try { return SerializationUtils.clone(obj); }catch (SerializationException e){ logger.error("[clone]", e); throw e; } }  static T clone(T obj);  }