public final class Violation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static @NotNull java.util.Comparator<Violation> |
COMPARATOR |
| Constructor and Description |
|---|
Violation(@NotNull java.lang.String type,
@NotNull java.lang.String reporterName,
@Nullable java.lang.String comment,
@Nullable java.lang.String relativeFilePath,
@Nullable java.lang.Integer fileLineNumber) |
Violation(@NotNull java.lang.String type,
@NotNull java.lang.String reporterName,
@Nullable java.lang.String comment,
@Nullable java.lang.String relativeFilePath,
@Nullable java.lang.Integer fileLineNumber,
@Nullable java.lang.String typeUrl) |
Violation(@NotNull java.lang.String type,
@NotNull java.lang.String reporterName,
@Nullable java.lang.String comment,
@Nullable java.lang.String relativeFilePath,
@Nullable java.lang.Integer fileLineNumber,
@Nullable java.lang.String typeUrl,
@NotNull java.util.List<java.lang.String> secondaryUrls) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
@Nullable java.lang.String |
getComment() |
@Nullable java.lang.Integer |
getFileLineNumber() |
@Nullable java.lang.String |
getRelativeFilePath() |
@NotNull java.lang.String |
getReporterName() |
@NotNull java.util.List<java.lang.String> |
getSecondaryUrls() |
@NotNull java.lang.String |
getType() |
@Nullable java.lang.String |
getTypeUrl() |
boolean |
hasAllLocationInfo() |
int |
hashCode() |
boolean |
hasRelativeFilePath() |
@NotNull public static final @NotNull java.util.Comparator<Violation> COMPARATOR
public Violation(@NotNull
@NotNull java.lang.String type,
@NotNull
@NotNull java.lang.String reporterName,
@Nullable
@Nullable java.lang.String comment,
@Nullable
@Nullable java.lang.String relativeFilePath,
@Nullable
@Nullable java.lang.Integer fileLineNumber)
public Violation(@NotNull
@NotNull java.lang.String type,
@NotNull
@NotNull java.lang.String reporterName,
@Nullable
@Nullable java.lang.String comment,
@Nullable
@Nullable java.lang.String relativeFilePath,
@Nullable
@Nullable java.lang.Integer fileLineNumber,
@Nullable
@Nullable java.lang.String typeUrl)
typeUrl - a URL identifying a resource that provides more information on this violation's type; null if no
such resource is knownpublic Violation(@NotNull
@NotNull java.lang.String type,
@NotNull
@NotNull java.lang.String reporterName,
@Nullable
@Nullable java.lang.String comment,
@Nullable
@Nullable java.lang.String relativeFilePath,
@Nullable
@Nullable java.lang.Integer fileLineNumber,
@Nullable
@Nullable java.lang.String typeUrl,
@NotNull
@NotNull java.util.List<java.lang.String> secondaryUrls)
typeUrl - a URL identifying a resource that provides more information on this violation's type; null if no
such resource is known@NotNull public @NotNull java.lang.String getType()
@NotNull public @NotNull java.lang.String getReporterName()
@Nullable public @Nullable java.lang.String getComment()
@Nullable public @Nullable java.lang.String getRelativeFilePath()
@Nullable public @Nullable java.lang.Integer getFileLineNumber()
@Nullable public @Nullable java.lang.String getTypeUrl()
@NotNull public @NotNull java.util.List<java.lang.String> getSecondaryUrls()
public boolean hasRelativeFilePath()
public boolean hasAllLocationInfo()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object