org.fuin.units4j
Class AssertCoverage.ExcludeListClassFilter

java.lang.Object
  extended by org.fuin.units4j.AssertCoverage.ExcludeListClassFilter
All Implemented Interfaces:
AssertCoverage.ClassFilter
Enclosing class:
AssertCoverage

public static class AssertCoverage.ExcludeListClassFilter
extends Object
implements AssertCoverage.ClassFilter

Uses a list of classes to exclude from the check.


Constructor Summary
AssertCoverage.ExcludeListClassFilter(Class<?>... excludedClasses)
          Constructor with array of excluded classes.
AssertCoverage.ExcludeListClassFilter(Map<String,String> classMap)
          Constructor with map of excluded classes.
 
Method Summary
 boolean isIncludeClass(Class<?> clasz)
          Checks if the class is in the exclude list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertCoverage.ExcludeListClassFilter

public AssertCoverage.ExcludeListClassFilter(Map<String,String> classMap)
Constructor with map of excluded classes.

Parameters:
classMap - Map of class names (key) with a text why it's excluded (value).

AssertCoverage.ExcludeListClassFilter

public AssertCoverage.ExcludeListClassFilter(Class<?>... excludedClasses)
Constructor with array of excluded classes.

Parameters:
excludedClasses - List of classes.
Method Detail

isIncludeClass

public final boolean isIncludeClass(Class<?> clasz)
Checks if the class is in the exclude list.

Specified by:
isIncludeClass in interface AssertCoverage.ClassFilter
Parameters:
clasz - Class to check.
Returns:
If the class is not in the exclude list TRUE, else FALSE.


Copyright © 2012 Future Invent Informationsmanagement GmbH. All Rights Reserved.