hudson.plugins.pmd.util
Class AnnotationDifferencer

java.lang.Object
  extended by hudson.plugins.pmd.util.AnnotationDifferencer

public final class AnnotationDifferencer
extends java.lang.Object

Provides several utility methods based on sets of annotations.

Author:
Ulli Hafner

Method Summary
static java.util.Set<FileAnnotation> getFixedWarnings(java.util.Collection<FileAnnotation> actual, java.util.Collection<FileAnnotation> previous)
          Returns the fixed annotations, i.e., the annotations that are in the previous build but not in the actual.
static java.util.Set<FileAnnotation> getNewWarnings(java.util.Collection<FileAnnotation> actual, java.util.Collection<FileAnnotation> previous)
          Returns the new annotations, i.e., the annotations that are in the actual build but not in the previous.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNewWarnings

public static java.util.Set<FileAnnotation> getNewWarnings(java.util.Collection<FileAnnotation> actual,
                                                           java.util.Collection<FileAnnotation> previous)
Returns the new annotations, i.e., the annotations that are in the actual build but not in the previous.

Parameters:
actual - annotations in actual build
previous - annotations in previous build
Returns:
the new annotations

getFixedWarnings

public static java.util.Set<FileAnnotation> getFixedWarnings(java.util.Collection<FileAnnotation> actual,
                                                             java.util.Collection<FileAnnotation> previous)
Returns the fixed annotations, i.e., the annotations that are in the previous build but not in the actual.

Parameters:
actual - annotations in actual build
previous - annotations in previous build
Returns:
the fixed annotations


Copyright © 2009. All Rights Reserved.