Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11381

cloning

From albert kao <albertkao3@gmail.com>
Newsgroups comp.lang.java.programmer
Subject cloning
Date 2012-01-16 10:27 -0800
Organization http://groups.google.com
Message-ID <36a0318f-278e-4f92-8a50-b804b3d7c8f7@k28g2000yqn.googlegroups.com> (permalink)

Show all headers | View raw


I want to clone the following class so is the following code ok?
public class TestImpl implements Serializable {

    private int id = 0;
    private java.sql.Timestamp createDateTime;
    private java.sql.Date expiryDate;
    private java.math.BigDecimal amount;
    private java.sql.Timestamp deleteTimestamp;

    // other methods
    // ...



    @Override
    public Object clone() throws CloneNotSupportedException {
        return (TestImpl)super.clone();
    }
}

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

cloning albert kao <albertkao3@gmail.com> - 2012-01-16 10:27 -0800
  Re: cloning Arne Vajhøj <arne@vajhoej.dk> - 2012-01-16 15:29 -0500
    Re: cloning Lew <noone@lewscanon.com> - 2012-01-16 13:47 -0800
      Re: cloning Arne Vajhøj <arne@vajhoej.dk> - 2012-01-16 16:52 -0500
        Re: cloning Lew <noone@lewscanon.com> - 2012-01-16 14:04 -0800
          Re: cloning Arne Vajhøj <arne@vajhoej.dk> - 2012-01-16 17:14 -0500
  Re: cloning Lew <noone@lewscanon.com> - 2012-01-16 14:03 -0800
  Re: cloning Roedy Green <see_website@mindprod.com.invalid> - 2012-01-17 09:55 -0800
    Re: cloning Arne Vajhøj <arne@vajhoej.dk> - 2012-01-17 17:37 -0500

csiph-web