Package com.optum.sourcehawk.core.result
Class FixResult
- java.lang.Object
-
- com.optum.sourcehawk.core.result.FixResult
-
- All Implemented Interfaces:
Serializable
public final class FixResult extends Object implements Serializable
The result of a fix- Author:
- Brian Wyka
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFixResult.FixResultBuilderstatic classFixResult.MessageDescriptorEncapsulates all of the traits of a fix result message
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FixResult.FixResultBuilderbuilder()booleanequals(Object o)intgetErrorCount()The number of errors which occurredintgetFixCount()The number of fixes made@NonNull Collection<String>getFormattedMessages()Messages formatted for reporting@NonNull Map<String,Collection<FixResult.MessageDescriptor>>getMessages()All of the messages associated with the scaninthashCode()booleanisError()Whether or not an error occurred during fixbooleanisFixesApplied()Whether or not fixes were appliedbooleanisNoResolver()Whether or not there was a resolver to usestatic FixResultreduce(FixResult one, FixResult two)Reduce twoFixResults into oneStringtoString()
-
-
-
Method Detail
-
reduce
public static FixResult reduce(FixResult one, FixResult two)
Reduce twoFixResults into one- Parameters:
one- the first fix resulttwo- the second fix result- Returns:
- the reduced fix result
-
builder
public static FixResult.FixResultBuilder builder()
-
isNoResolver
public boolean isNoResolver()
Whether or not there was a resolver to use
-
isFixesApplied
public boolean isFixesApplied()
Whether or not fixes were applied
-
isError
public boolean isError()
Whether or not an error occurred during fix
-
getFixCount
public int getFixCount()
The number of fixes made
-
getErrorCount
public int getErrorCount()
The number of errors which occurred
-
getMessages
@NonNull public @NonNull Map<String,Collection<FixResult.MessageDescriptor>> getMessages()
All of the messages associated with the scanKey: Repository File Path Value: Collection of
FixResult.MessageDescriptor
-
getFormattedMessages
@NonNull public @NonNull Collection<String> getFormattedMessages()
Messages formatted for reportingFormat: [SEVERITY] repositoryFilePath :: message
-
-