public class ClassDuplicatesDetector extends AClassInformationProcessor<java.util.Map<java.lang.String,java.util.List<ClassInformation>>>
Constructor and Description |
---|
ClassDuplicatesDetector()
Initialize the new instance with default values.
|
ClassDuplicatesDetector(int initialCapacity)
Initialize the new instance with default values.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.List<ClassInformation>> |
extractDuplicates()
Returns a map that contains only the classes that occurred more than once.
|
protected org.pfsw.util.CollectorDictionary<java.lang.String,ClassInformation> |
getClassDictionary() |
java.util.Map<java.lang.String,java.util.List<ClassInformation>> |
getResultData()
Returns any data that has been produced during the processing.
|
boolean |
matches(ClassInformation classInfo)
Here it always returns false because the classes will be selected
separately in the
process(ClassInformation) method. |
boolean |
process(ClassInformation classInfo)
Collects all classes to detect duplicates.
|
protected void |
setClassDictionary(org.pfsw.util.CollectorDictionary<java.lang.String,ClassInformation> newValue) |
public ClassDuplicatesDetector()
public ClassDuplicatesDetector(int initialCapacity)
protected org.pfsw.util.CollectorDictionary<java.lang.String,ClassInformation> getClassDictionary()
protected void setClassDictionary(org.pfsw.util.CollectorDictionary<java.lang.String,ClassInformation> newValue)
public boolean matches(ClassInformation classInfo)
process(ClassInformation)
method.classInfo
- Any element object or even nullpublic boolean process(ClassInformation classInfo)
classInfo
- The object to be processed (never null).public java.util.Map<java.lang.String,java.util.List<ClassInformation>> getResultData()
getResultData
in interface IClassInformationProcessor<java.util.Map<java.lang.String,java.util.List<ClassInformation>>>
getResultData
in class AClassInformationProcessor<java.util.Map<java.lang.String,java.util.List<ClassInformation>>>
protected java.util.Map<java.lang.String,java.util.List<ClassInformation>> extractDuplicates()