1. gigadot
  2. chom

Commits

gigadot  committed bbd0d9a

removed copy constructors from atom class

  • Participants
  • Parent commits 357be99
  • Branches default

Comments (0)

Files changed (2)

File model/src/main/java/gigadot/chom/model/Brownie.java

View file
 @XmlSeeAlso({Cookie.class, Atom.class, Identifier.class})
 public abstract class Brownie {
 
-    private static final String molDocCurrentVersion = "1.0";
+    private static final String molDocThisVersion = "1.0";
     private String id = null;
     private String ref = null;
     private Long version;
-    private String molDocVersion = molDocCurrentVersion;
+    private String molDocVersion = molDocThisVersion;
 
     @Id
     @GenericGenerator(name = "cuid", strategy = "gigadot.chom.model.id.CUIDGenerator")

File model/src/main/java/gigadot/chom/model/brownie/Atom.java

View file
         this.element = PeriodicTable.getElement(Z);
     }
 
-    /**
-     * Copy constructor, make an exact copy of the atom object.
-     *
-     * @param atom
-     */
-    public Atom(Atom atom) {
-        this(atom, 1);
-    }
-
-    /**
-     * Copy constructor, make a copy of atom object with atom count set to the given count value.
-     *
-     * @param atom
-     * @param count
-     */
-    public Atom(Atom atom, int count) {
-        order = atom.order;
-        posX = atom.posX;
-        posY = atom.posY;
-        posZ = atom.posZ;
-        posXInA = atom.posXInA;
-        posYInA = atom.posYInA;
-        posZInA = atom.posZInA;
-        element = atom.element;
-        isotope = atom.isotope;
-        if (count > 0) {
-            this.count = count;
-        } else {
-            throw new UnsupportedOperationException("Atom count is less than 0. count = " + count);
-        }
-    }
-
     @Transient
     public Element getElement() {
         return element;