org.infinispan.util
Class ObjectDuplicator

java.lang.Object
  extended by org.infinispan.util.ObjectDuplicator

public class ObjectDuplicator
extends Object

A helper that efficiently duplicates known object types.

Since:
4.0
Author:
(various)

Constructor Summary
ObjectDuplicator()
           
 
Method Summary
static
<E> Collection<E>
duplicateCollection(Collection<E> original)
           
static
<K,V> Map<K,V>
duplicateMap(Map<K,V> original)
           
static
<E> ReversibleOrderedSet<E>
duplicateReversibleOrderedSet(ReversibleOrderedSet<E> original)
           
static
<E> Set<E>
duplicateSet(Set<E> original)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectDuplicator

public ObjectDuplicator()
Method Detail

duplicateMap

public static <K,V> Map<K,V> duplicateMap(Map<K,V> original)

duplicateSet

public static <E> Set<E> duplicateSet(Set<E> original)

duplicateReversibleOrderedSet

public static <E> ReversibleOrderedSet<E> duplicateReversibleOrderedSet(ReversibleOrderedSet<E> original)

duplicateCollection

public static <E> Collection<E> duplicateCollection(Collection<E> original)

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.