public class GHUpdateChecker
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected static @NotNull java.util.regex.Pattern |
GH_URL_PATTERN |
protected @NotNull java.util.logging.Logger |
logger |
protected @NotNull java.lang.String |
owner |
protected @NotNull java.lang.String |
repo |
构造器和说明 |
---|
GHUpdateChecker(@NotNull java.util.logging.Logger logger,
@NotNull java.lang.String owner,
@NotNull java.lang.String repo) |
限定符和类型 | 方法和说明 |
---|---|
void |
checkUpdate(@NotNull java.lang.String currentVersion) |
java.lang.Runnable |
createRunner(@NotNull java.lang.String currentVersion) |
protected static java.lang.String |
getGithubOwner(org.bukkit.plugin.Plugin plugin) |
protected static java.lang.String |
getGithubOwner(java.lang.String url) |
static @NotNull GHUpdateChecker |
of(@NotNull java.util.logging.Logger logger,
@NotNull java.lang.String owner,
@NotNull java.lang.String repo) |
static @NotNull GHUpdateChecker |
of(@NotNull org.bukkit.plugin.Plugin plugin) |
static @NotNull org.bukkit.scheduler.BukkitTask |
run(@NotNull org.bukkit.plugin.Plugin plugin) |
static @NotNull java.lang.Runnable |
runner(@NotNull java.util.logging.Logger logger,
@NotNull java.lang.String owner,
@NotNull java.lang.String repo,
@NotNull java.lang.String currentVersion) |
static @NotNull java.lang.Runnable |
runner(@NotNull org.bukkit.plugin.Plugin plugin) |
@NotNull protected static final @NotNull java.util.regex.Pattern GH_URL_PATTERN
@NotNull protected final @NotNull java.util.logging.Logger logger
@NotNull protected final @NotNull java.lang.String owner
@NotNull protected final @NotNull java.lang.String repo
public GHUpdateChecker(@NotNull @NotNull java.util.logging.Logger logger, @NotNull @NotNull java.lang.String owner, @NotNull @NotNull java.lang.String repo)
@NotNull public static @NotNull GHUpdateChecker of(@NotNull @NotNull java.util.logging.Logger logger, @NotNull @NotNull java.lang.String owner, @NotNull @NotNull java.lang.String repo)
@NotNull public static @NotNull GHUpdateChecker of(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
@NotNull public static @NotNull java.lang.Runnable runner(@NotNull @NotNull java.util.logging.Logger logger, @NotNull @NotNull java.lang.String owner, @NotNull @NotNull java.lang.String repo, @NotNull @NotNull java.lang.String currentVersion)
@NotNull public static @NotNull java.lang.Runnable runner(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
@NotNull public static @NotNull org.bukkit.scheduler.BukkitTask run(@NotNull @NotNull org.bukkit.plugin.Plugin plugin)
public void checkUpdate(@NotNull @NotNull java.lang.String currentVersion)
public java.lang.Runnable createRunner(@NotNull @NotNull java.lang.String currentVersion)
protected static java.lang.String getGithubOwner(org.bukkit.plugin.Plugin plugin)
protected static java.lang.String getGithubOwner(java.lang.String url)
Copyright © 2024. All rights reserved.