mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[intention-preview] toString() for HTML preview
GitOrigin-RevId: ee40f912cebab06caab96597762da5401ccbd827
This commit is contained in:
committed by
intellij-monorepo-bot
parent
59c4a03f79
commit
0931d75584
+19
@@ -247,6 +247,25 @@ public interface IntentionPreviewInfo {
|
||||
public @NotNull InfoKind infoKind() {
|
||||
return myInfoKind;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
Html html = (Html)o;
|
||||
return myContent.toString().equals(html.myContent.toString()) && myInfoKind == html.myInfoKind;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return 31 * myContent.toString().hashCode() + myInfoKind.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HTML [content=" + myContent + ", infoKind=" + myInfoKind + "]";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user