Class CloneHelper

java.lang.Object
fr.uga.miage.pc.dilemme.back.strategie.CloneHelper

public final class CloneHelper
extends java.lang.Object
This class is used in order to create a clone of a Strategie for the creation of Confrontation
Since:
3.0
  • Constructor Summary

    Constructors 
    Constructor Description
    CloneHelper()  
  • Method Summary

    Modifier and Type Method Description
    static IStrategie clone​(IStrategie strategie)
    Create the a clone of the Strategie with the Strategie given in parameter
    static IStrategie clone​(java.lang.String name)
    Create the a clone of the Strategie with the code given in parameter
    static IStrategie cloneTest​(IStrategie strategie)
    Deprecated.
    This system isn't finished yet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • cloneTest

      @Deprecated public static IStrategie cloneTest​(IStrategie strategie)
      Deprecated.
      This system isn't finished yet
      Create a clone of the Strategie given by using the private class StrategieClone
      Parameters:
      strategie - - Strategie to clone
      Returns:
      The clone of the Strategie
      Since:
      3.0
    • clone

      public static IStrategie clone​(java.lang.String name) throws java.lang.Exception
      Create the a clone of the Strategie with the code given in parameter
      Parameters:
      name - The code of the strategie to clone
      Returns:
      Clone of the Strategie
      Throws:
      java.lang.Exception - If the name of the strategie isn't known
      Since:
      3.0
    • clone

      public static IStrategie clone​(IStrategie strategie) throws java.lang.Exception
      Create the a clone of the Strategie with the Strategie given in parameter
      Parameters:
      IStrategie - The Strategie to clone
      Returns:
      Clone of the Strategie
      Throws:
      java.lang.Exception - If the instance is unknow
      Since:
      3.0