Package net.sf.jasperreports.engine.util
Class DeduplicableRegistry
- java.lang.Object
-
- net.sf.jasperreports.engine.util.DeduplicableRegistry
-
public class DeduplicableRegistry extends Object
A registry of deduplicable objects.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DeduplicableRegistry.DeduplicableMap<T extends Deduplicable>
protected static class
DeduplicableRegistry.DeduplicableWrapper<T extends Deduplicable>
-
Constructor Summary
Constructors Constructor Description DeduplicableRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Deduplicable>
Tdeduplicate(T object)
Search for a duplicate of a given object in the registry, and add the object to the registry if no duplicate found.protected <T extends Deduplicable>
DeduplicableRegistry.DeduplicableMap<T>typeMap(T object)
-
-
-
Method Detail
-
deduplicate
public <T extends Deduplicable> T deduplicate(T object)
Search for a duplicate of a given object in the registry, and add the object to the registry if no duplicate found.- Parameters:
object
- the object to be searched or added- Returns:
- a duplicate of the object if found, or the passed object if not
-
typeMap
protected <T extends Deduplicable> DeduplicableRegistry.DeduplicableMap<T> typeMap(T object)
-
-