public class CurseFileInfo
extends java.lang.Object
| Constructor and Description |
|---|
CurseFileInfo(int projectID,
int fileID)
Construct a new CurseFileInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getFileID()
Get the file ID.
|
static @NotNull java.util.List<CurseFileInfo> |
getFilesFromJson(java.lang.String jsonUrl)
Retrieve a collection of
CurseFileInfo by parsing a remote JSON file. |
static @NotNull java.util.List<CurseFileInfo> |
getFilesFromJson(java.net.URL jsonUrl)
Retrieve a collection of
CurseFileInfo by parsing a remote JSON file. |
int |
getProjectID()
Get the project ID.
|
int |
hashCode() |
public CurseFileInfo(int projectID,
int fileID)
projectID - the ID of the project.fileID - the ID of the file.@NotNull public static @NotNull java.util.List<CurseFileInfo> getFilesFromJson(java.net.URL jsonUrl)
CurseFileInfo by parsing a remote JSON file.jsonUrl - the url of the remote JSON file.CurseFileInfo.@NotNull public static @NotNull java.util.List<CurseFileInfo> getFilesFromJson(java.lang.String jsonUrl)
CurseFileInfo by parsing a remote JSON file.jsonUrl - the url of the remote JSON file.CurseFileInfo.public int getProjectID()
public int getFileID()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object