コード例 #1
0
 @Override
 public DefaultKernelContainer<InputType> clone() {
   @SuppressWarnings("unchecked")
   final DefaultKernelContainer<InputType> result =
       (DefaultKernelContainer<InputType>) super.clone();
   result.kernel = ObjectUtil.cloneSmart(this.kernel);
   return result;
 }
コード例 #2
0
 /**
  * Creates a new copy of a KernelContainer and the kernel inside.
  *
  * @param other The KernelContainer to copy.
  */
 public DefaultKernelContainer(final DefaultKernelContainer<? super InputType> other) {
   this(ObjectUtil.cloneSmart(other.getKernel()));
 }