org.processmining.framework.util
Class MethodsToMakeDeepCopiesOfDataStructures

java.lang.Object
  extended by org.processmining.framework.util.MethodsToMakeDeepCopiesOfDataStructures

public class MethodsToMakeDeepCopiesOfDataStructures
extends java.lang.Object

Title: Methods to Make Deep Copies of Data Structures

Description: Various methods to make a deep copy data structures that are used in the framework.

Copyright: Copyright (c) 2005

Company: TU/e

Version:
1.0
Author:
Ana Karla A. de Medeiros

Constructor Summary
MethodsToMakeDeepCopiesOfDataStructures()
           
 
Method Summary
static java.util.ArrayList cloneCollectionViaSerialization(java.util.Collection originalList)
           
static java.util.HashSet cloneHashSet(java.util.HashSet originalHash)
          Make a deep copy of a HashSet that contains TreeSets that contain Integer.
static java.util.TreeSet cloneTreeSet(java.util.TreeSet originalTreeSet)
          Make a deep copy of a TreeSet that contains Integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodsToMakeDeepCopiesOfDataStructures

public MethodsToMakeDeepCopiesOfDataStructures()
Method Detail

cloneHashSet

public static final java.util.HashSet cloneHashSet(java.util.HashSet originalHash)
Make a deep copy of a HashSet that contains TreeSets that contain Integer.

Parameters:
originalHash - - HashSet to be copied.
Returns:
a deep copy of originalHash

cloneTreeSet

public static final java.util.TreeSet cloneTreeSet(java.util.TreeSet originalTreeSet)
Make a deep copy of a TreeSet that contains Integer.

Parameters:
originalTreeSet - - TreeSet to be copied.
Returns:
a deep copy of originalTreeSet

cloneCollectionViaSerialization

public static final java.util.ArrayList cloneCollectionViaSerialization(java.util.Collection originalList)