diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 13:50:53 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 13:50:53 +0200 |
commit | d19350d4b0b99f6b04680aba9686ddbe1e7df780 (patch) | |
tree | abb8859f13f2f03ebf9457624f8f2cbae6496b00 /src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt | |
parent | e04efa84f7d42ddcbe11eb65f25adc0e524a3aaa (diff) | |
download | skyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.tar.gz skyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.tar.bz2 skyhanni-d19350d4b0b99f6b04680aba9686ddbe1e7df780.zip |
Changing internalName to getInternalName_old, and getInternalName_new to internalName
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt index 89741cbef..5ccb74664 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUInternalName.kt @@ -24,5 +24,14 @@ class NEUInternalName private constructor(private val internalName: String) { override fun hashCode(): Int = internalName.hashCode() -// fun equals(other: String) = internalName == other + fun equals(other: String) = internalName == other + + fun contains(other: String) = internalName.contains(other) + + fun startsWith(other: String) = internalName.startsWith(other) + + fun endsWith(other: String) = internalName.endsWith(other) + + fun replace(oldValue: String, newValue: String) = + internalName.replace(oldValue.uppercase(), newValue.uppercase()).asInternalName() }
\ No newline at end of file |