forked from eclipse-jdtls/eclipse.jdt.ls
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
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
68 changes: 68 additions & 0 deletions
68
...ipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/commands/ProjectClasspathEntry.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,68 @@ | ||
package org.eclipse.jdt.ls.core.internal.commands; | ||
|
||
import java.util.Map; | ||
import java.util.Objects; | ||
|
||
public class ProjectClasspathEntry { | ||
|
||
private int kind; | ||
private String path; | ||
private String output; | ||
private Map<String, String> attributes; | ||
|
||
public ProjectClasspathEntry(int kind, String path, String output, Map<String, String> attributes) { | ||
this.kind = kind; | ||
this.path = path; | ||
this.output = output; | ||
this.attributes = attributes; | ||
} | ||
|
||
public int getKind() { | ||
return kind; | ||
} | ||
|
||
public void setKind(int kind) { | ||
this.kind = kind; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public void setPath(String path) { | ||
this.path = path; | ||
} | ||
|
||
public String getOutput() { | ||
return output; | ||
} | ||
|
||
public void setOutput(String output) { | ||
this.output = output; | ||
} | ||
|
||
public Map<String, String> getAttributes() { | ||
return attributes; | ||
} | ||
|
||
public void setAttributes(Map<String, String> attributes) { | ||
this.attributes = attributes; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(kind, path, output, attributes); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) | ||
return true; | ||
if (obj == null) | ||
return false; | ||
if (getClass() != obj.getClass()) | ||
return false; | ||
ProjectClasspathEntry other = (ProjectClasspathEntry) obj; | ||
return kind == other.kind && Objects.equals(path, other.path) && Objects.equals(output, other.output) && Objects.equals(attributes, other.attributes); | ||
} | ||
} |
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