@Test public void testClose() throws Exception { MetadataElement cloned = (MetadataElement) me1.clone(); assertEquals(me1, cloned); }
@Override public Object clone() throws CloneNotSupportedException { MetadataElement obj = (MetadataElement) super.clone(); obj.setKey(getKey()); obj.setValue(getValue()); return obj; }
MetadataElement implements NameValuePair, Cloneable { @Override public Object clone() throws CloneNotSupportedException { MetadataElement obj = (MetadataElement) super.clone(); obj.setKey(getKey()); obj.setValue(getValue()); return obj; } }
MetadataElement implements NameValuePair, Cloneable { @Override public Object clone() throws CloneNotSupportedException { MetadataElement obj = (MetadataElement) super.clone(); obj.setKey(getKey()); obj.setValue(getValue()); return obj; } MetadataElement();  MetadataElement(KeyValuePair kp);  MetadataElement(String key, String value); }
MetadataElement implements NameValuePair, Cloneable { @Override public Object clone() throws CloneNotSupportedException { MetadataElement obj = (MetadataElement) super.clone(); obj.setKey(getKey()); obj.setValue(getValue()); return obj; } MetadataElement();  MetadataElement(KeyValuePair kp);  MetadataElement(String key, String value); @Override void setKey(String key); @Override String getKey(); @Override void setValue(String value); @Override String getValue(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
MetadataElement implements NameValuePair, Cloneable { @Override public Object clone() throws CloneNotSupportedException { MetadataElement obj = (MetadataElement) super.clone(); obj.setKey(getKey()); obj.setValue(getValue()); return obj; } MetadataElement();  MetadataElement(KeyValuePair kp);  MetadataElement(String key, String value); @Override void setKey(String key); @Override String getKey(); @Override void setValue(String value); @Override String getValue(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }