Package cdc.issues
Class IssuesSampler
java.lang.Object
cdc.issues.IssuesSampler
- All Implemented Interfaces:
IssuesHandler
Implementation of
IssuesHandler that can sample passed issues.- Author:
- Damien Carbonne
-
Field Summary
Fields inherited from interface cdc.issues.IssuesHandler
VOID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear samples.booleanvoidNotifies an issue.voidsetEnabled(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.issues.IssuesHandler
issues, issues
-
Constructor Details
-
IssuesSampler
-
-
Method Details
-
getDelegate
- Returns:
- The delegate.
-
setEnabled
public void setEnabled(boolean enabled) - Parameters:
enabled- Iftruesamples are stored. Otherwise they are ignored.
-
isEnabled
public boolean isEnabled()- Returns:
trueif samples are stored.
-
clear
public void clear()Clear samples. -
getSamples
- Returns:
- The current samples.
-
issue
Description copied from interface:IssuesHandlerNotifies an issue.- Specified by:
issuein interfaceIssuesHandler- Parameters:
issue- The issue.
-