Rename utility class

This commit is contained in:
filoghost 2020-06-13 19:43:48 +02:00
parent f667f967ea
commit 4e35757194
4 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ package me.filoghost.chestcommands.menu.icon;
import org.bukkit.entity.Player;
import me.filoghost.chestcommands.util.StringUtils;
import me.filoghost.chestcommands.util.Strings;
public class PermissionChecker {
@ -28,7 +28,7 @@ public class PermissionChecker {
permission = permission.trim();
}
if (StringUtils.isNullOrEmpty(permission)) {
if (Strings.isNullOrEmpty(permission)) {
this.permission = null;
negated = false;
} else {

View File

@ -103,7 +103,7 @@ public final class MaterialsHelper {
}
public static String formatMaterial(Material material) {
return StringUtils.capitalizeFully(material.toString().replace("_", " "));
return Strings.capitalizeFully(material.toString().replace("_", " "));
}
private static Collection<Material> getExistingMaterials(String... materialEnumNames) {

View File

@ -77,7 +77,7 @@ public class Registry<T> {
}
private String toKeyFormat(String enumValueName) {
return StringUtils.stripChars(enumValueName, KEY_IGNORE_CHARS).toLowerCase();
return Strings.stripChars(enumValueName, KEY_IGNORE_CHARS).toLowerCase();
}
@Override

View File

@ -14,9 +14,9 @@
*/
package me.filoghost.chestcommands.util;
public final class StringUtils {
public final class Strings {
private StringUtils() {}
private Strings() {}
public static String stripChars(String input, char... removed) {