This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Michail Plushnikov
committed
Mar 10, 2014
1 parent
d8ffcce
commit 88881ce
Showing
4 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
lombok-plugin/src/main/java/de/plushnikov/intellij/plugin/provider/AugmentCallData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package de.plushnikov.intellij.plugin.provider; | ||
|
||
import com.intellij.psi.PsiElement; | ||
|
||
public class AugmentCallData { | ||
private final PsiElement element; | ||
private final Class type; | ||
|
||
public <Psi extends PsiElement> AugmentCallData(PsiElement element, Class<Psi> type) { | ||
this.element = element; | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
|
||
AugmentCallData that = (AugmentCallData) o; | ||
|
||
return element.equals(that.element) && type.equals(that.type); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = element.hashCode(); | ||
result = 31 * result + type.hashCode(); | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters