Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * If the object needs to has to clone() should implement Cloneable interface
- */
- public class CloneableObject implements Cloneable {
- private String key;
- private int number;
- private Map map;
- public CloneableObject clone() {
- // ...
- }
- // leave out getter and setter
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement