hudson.plugins.analysis.core
Class AnnotationDifferencer

java.lang.Object
  extended by hudson.plugins.analysis.core.AnnotationDifferencer

public final class AnnotationDifferencer
extends Object

Provides several utility methods based on sets of annotations.

Author:
Ulli Hafner

Method Summary
static Set<FileAnnotation> getFixedAnnotations(Set<FileAnnotation> current, Set<FileAnnotation> previous)
          Returns the fixed annotations, i.e., the annotations that are in the previous build but not in the current.
static Set<FileAnnotation> getNewAnnotations(Set<FileAnnotation> current, Set<FileAnnotation> previous)
          Returns the new annotations, i.e., the annotations that are in the current 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

getNewAnnotations

public static Set<FileAnnotation> getNewAnnotations(Set<FileAnnotation> current,
                                                    Set<FileAnnotation> previous)
Returns the new annotations, i.e., the annotations that are in the current build but not in the previous.

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

getFixedAnnotations

public static Set<FileAnnotation> getFixedAnnotations(Set<FileAnnotation> current,
                                                      Set<FileAnnotation> previous)
Returns the fixed annotations, i.e., the annotations that are in the previous build but not in the current.

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


Copyright © 2004-2012 Hudson. All Rights Reserved.