-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make fully V10-compatible, including new fields in module.json
- Loading branch information
Showing
5 changed files
with
173 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package name.ipsi.project.fwbp.foundry; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Objects; | ||
|
||
public class Author { | ||
private final String name; | ||
private final String url; | ||
private final String discord; | ||
private final Map<String, Object> flags; | ||
|
||
public Author(String name, String url, String discord) { | ||
this.name = name; | ||
this.url = url; | ||
this.discord = discord; | ||
this.flags = Collections.emptyMap(); | ||
} | ||
|
||
public Author(String name, String url, String discord, Map<String, Object> flags) { | ||
this.name = name; | ||
this.url = url; | ||
this.discord = discord; | ||
this.flags = flags; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getDiscord() { | ||
return discord; | ||
} | ||
|
||
public Map<String, Object> getFlags() { | ||
return flags; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Author author = (Author) o; | ||
return Objects.equals(name, author.name) && Objects.equals(url, author.url) && Objects.equals(discord, author.discord) && Objects.equals(flags, author.flags); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(name, url, discord, flags); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Author{" + | ||
"name='" + name + '\'' + | ||
", url='" + url + '\'' + | ||
", discord='" + discord + '\'' + | ||
", flags=" + flags + | ||
'}'; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/main/java/name/ipsi/project/fwbp/foundry/Compatibility.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,49 @@ | ||
package name.ipsi.project.fwbp.foundry; | ||
|
||
import java.util.Objects; | ||
|
||
public class Compatibility { | ||
private final String minimum; | ||
private final String verified; | ||
private final String maximum; | ||
|
||
public Compatibility(String minimum, String verified, String maximum) { | ||
this.minimum = minimum; | ||
this.verified = verified; | ||
this.maximum = maximum; | ||
} | ||
|
||
public String getMinimum() { | ||
return minimum; | ||
} | ||
|
||
public String getVerified() { | ||
return verified; | ||
} | ||
|
||
public String getMaximum() { | ||
return maximum; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
Compatibility that = (Compatibility) o; | ||
return Objects.equals(minimum, that.minimum) && Objects.equals(verified, that.verified) && Objects.equals(maximum, that.maximum); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(minimum, verified, maximum); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Compatibility{" + | ||
"minimum='" + minimum + '\'' + | ||
", verified='" + verified + '\'' + | ||
", maximum='" + maximum + '\'' + | ||
'}'; | ||
} | ||
} |
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
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