@Test public void testClone() throws IOException { @SuppressWarnings("unchecked") MemStore<String, Employee> store = DataStoreFactory.getDataStore( MemStore.class, String.class, Employee.class); Employee employee = DataStoreTestUtil.createEmployee(store); Assert.assertEquals(employee, employee.clone()); }
@Override public Persistent clone() { return datumReader.clone(this, getSchema()); }
PersistentBase implements Persistent { @Override public Persistent clone() { return datumReader.clone(this, getSchema()); } }
PersistentBase implements Persistent { @Override public Persistent clone() { return datumReader.clone(this, getSchema()); } protected  PersistentBase(); protected  PersistentBase(StateManager stateManager); }
PersistentBase implements Persistent { @Override public Persistent clone() { return datumReader.clone(this, getSchema()); } protected  PersistentBase(); protected  PersistentBase(StateManager stateManager); @Override StateManager getStateManager(); @Override String[] getFields(); @Override String getField(int index); @Override int getFieldIndex(String field); @Override @SuppressWarnings("rawtypes") void clear(); @Override boolean isNew(); @Override void setNew(); @Override void clearNew(); @Override boolean isDirty(); @Override boolean isDirty(int fieldIndex); @Override boolean isDirty(String field); @Override void setDirty(); @Override void setDirty(int fieldIndex); @Override void setDirty(String field); @Override void clearDirty(int fieldIndex); @Override void clearDirty(String field); @Override void clearDirty(); @Override boolean isReadable(int fieldIndex); @Override boolean isReadable(String field); @Override void setReadable(int fieldIndex); @Override void setReadable(String field); @Override void clearReadable(); @Override void clearReadable(int fieldIndex); @Override void clearReadable(String field); @Override boolean equals(Object o); @Override int hashCode(); @Override Persistent clone(); @Override String toString(); }
PersistentBase implements Persistent { @Override public Persistent clone() { return datumReader.clone(this, getSchema()); } protected  PersistentBase(); protected  PersistentBase(StateManager stateManager); @Override StateManager getStateManager(); @Override String[] getFields(); @Override String getField(int index); @Override int getFieldIndex(String field); @Override @SuppressWarnings("rawtypes") void clear(); @Override boolean isNew(); @Override void setNew(); @Override void clearNew(); @Override boolean isDirty(); @Override boolean isDirty(int fieldIndex); @Override boolean isDirty(String field); @Override void setDirty(); @Override void setDirty(int fieldIndex); @Override void setDirty(String field); @Override void clearDirty(int fieldIndex); @Override void clearDirty(String field); @Override void clearDirty(); @Override boolean isReadable(int fieldIndex); @Override boolean isReadable(String field); @Override void setReadable(int fieldIndex); @Override void setReadable(String field); @Override void clearReadable(); @Override void clearReadable(int fieldIndex); @Override void clearReadable(String field); @Override boolean equals(Object o); @Override int hashCode(); @Override Persistent clone(); @Override String toString();  }