/** * Utility returning a copy of the "base" of this instance * This utility does not copy the associations with other instances * * @return a clone of this instance */ public TransformerWinding clone() { TransformerWinding newInstance = new TransformerWinding(this); TransformerWinding newInstanceSP = newInstance; return newInstanceSP; }
/** * Factory of the class * * @param id * id of the class TransformerWinding to create * @return the class created */ public static TransformerWinding create(final String id) { TransformerWinding newTransformerWinding = new TransformerWinding(); newTransformerWinding.setId(id); return newTransformerWinding; }
TransformerWinding newTransformerWinding = new TransformerWinding();