Documentation of 'org.jgap.impl.DefaultCloneHandler' Java class
DefaultCloneHandler
org.jgap.impl

Class DefaultCloneHandler

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, ICloneHandler, IHandler, ICloneable


    public class DefaultCloneHandler
    extends java.lang.Object
    implements ICloneHandler, ICloneable, java.io.Serializable, java.lang.Comparable
    Default clone handler supporting IApplicationData as well as implementations of Cloneable (for the latter: in case the clone-method is accessible via reflection).
    Since:
    2.6
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone() 
      int compareTo(java.lang.Object a_other) 
      boolean isHandlerFor(java.lang.Object a_obj, java.lang.Class a_clazz)
      Handles all implementations of IApplicationData as well as all of java.lang.Cloneable (for which the clone-method is accessible via reflection.
      java.lang.Object perform(java.lang.Object a_objToClone, java.lang.Class a_class, java.lang.Object a_params)
      Performs the clone operation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCloneHandler

        public DefaultCloneHandler()
    • Method Detail

      • isHandlerFor

        public boolean isHandlerFor(java.lang.Object a_obj,
                                    java.lang.Class a_clazz)
        Handles all implementations of IApplicationData as well as all of java.lang.Cloneable (for which the clone-method is accessible via reflection. This is not the case for package protected classes, e.g.).
        Specified by:
        isHandlerFor in interface IHandler
        Parameters:
        a_obj - the object to check for (maybe null)
        a_clazz - the class to check for whether it is handled (maybe null)
        Returns:
        true in case class is clonable via this handler
        Since:
        2.6
      • perform

        public java.lang.Object perform(java.lang.Object a_objToClone,
                                        java.lang.Class a_class,
                                        java.lang.Object a_params)
        Performs the clone operation.
        Specified by:
        perform in interface IHandler
        Parameters:
        a_objToClone - the object to clone
        a_class - not considered here
        a_params - not considered here
        Returns:
        Object
        Since:
        2.6
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of this instance
        Since:
        3.2
      • compareTo

        public int compareTo(java.lang.Object a_other)
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        a_other - sic
        Returns:
        as always
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.