5 Commits

Author SHA1 Message Date
a4bcc3bf57 Merge pull request 'v0.0.6' (#5) from dev into master
Reviewed-on: #5
2026-05-22 11:15:51 +00:00
6361c70f37 Merge pull request 'v0.0.5' (#4) from dev into master
Reviewed-on: #4
2026-05-07 06:42:52 +00:00
e793a260be Merge pull request 'v0.0.4' (#3) from dev into master
Reviewed-on: #3
2026-05-06 08:38:39 +00:00
2020cb9111 Merge pull request 'v0.0.3' (#2) from dev into master
Reviewed-on: #2
2026-03-21 10:01:09 +00:00
b686679014 Merge pull request 'v0.0.2' (#1) from dev into master
Reviewed-on: #1
2026-01-19 09:39:33 +00:00
2 changed files with 11 additions and 15 deletions

View File

@@ -6,7 +6,7 @@
<groupId>com.imyeyu.utils</groupId> <groupId>com.imyeyu.utils</groupId>
<artifactId>timi-utils</artifactId> <artifactId>timi-utils</artifactId>
<version>0.0.7</version> <version>0.0.6</version>
<properties> <properties>
<maven.test.skip>true</maven.test.skip> <maven.test.skip>true</maven.test.skip>

View File

@@ -75,8 +75,8 @@ public class Text {
* @return true 时全部其他字符串和比较字符串一致 * @return true 时全部其他字符串和比较字符串一致
*/ */
public static boolean eqAnd(String string, String... other) { public static boolean eqAnd(String string, String... other) {
for (String s : other) { for (int i = 0; i < other.length; i++) {
if (!string.equals(s)) { if (!string.equals(other[i])) {
return false; return false;
} }
} }
@@ -91,8 +91,8 @@ public class Text {
* @return true 时其他字符串存在和比较字符串一致 * @return true 时其他字符串存在和比较字符串一致
*/ */
public static boolean eqOr(String string, String... other) { public static boolean eqOr(String string, String... other) {
for (String s : other) { for (int i = 0; i < other.length; i++) {
if (!string.equals(s)) { if (!string.equals(other[i])) {
return false; return false;
} }
} }
@@ -107,8 +107,8 @@ public class Text {
* @return true 时全部其他字符串和比较字符串一致 * @return true 时全部其他字符串和比较字符串一致
*/ */
public static boolean eqIgnoreCaseAnd(String string, String... other) { public static boolean eqIgnoreCaseAnd(String string, String... other) {
for (String s : other) { for (int i = 0; i < other.length; i++) {
if (!string.equalsIgnoreCase(s)) { if (!string.equalsIgnoreCase(other[i])) {
return false; return false;
} }
} }
@@ -123,8 +123,8 @@ public class Text {
* @return true 时其他字符串存在和比较字符串一致 * @return true 时其他字符串存在和比较字符串一致
*/ */
public static boolean eqIgnoreCaseOr(String string, String... other) { public static boolean eqIgnoreCaseOr(String string, String... other) {
for (String s : other) { for (int i = 0; i < other.length; i++) {
if (string.equalsIgnoreCase(s)) { if (string.equalsIgnoreCase(other[i])) {
return true; return true;
} }
} }
@@ -141,8 +141,8 @@ public class Text {
public static boolean containsIgnoreCase(String string, String... other) { public static boolean containsIgnoreCase(String string, String... other) {
String stringUpper = string.toUpperCase(); String stringUpper = string.toUpperCase();
String stringLower = string.toLowerCase(); String stringLower = string.toLowerCase();
for (String s : other) { for (int i = 0; i < other.length; i++) {
if (stringLower.contains(s.toLowerCase()) || stringUpper.contains(s.toUpperCase())) { if (stringLower.contains(other[i].toLowerCase()) || stringUpper.contains(other[i].toUpperCase())) {
return true; return true;
} }
} }
@@ -403,8 +403,4 @@ public class Text {
public static String underscoreClassName(Class<?> clazz) { public static String underscoreClassName(Class<?> clazz) {
return camelCase2underscore(clazz.getSimpleName()); return camelCase2underscore(clazz.getSimpleName());
} }
public static String bizClassName(Class<?> clazz) {
return underscoreClassName(clazz).toUpperCase();
}
} }