Package javatapas.string
Class DetermineIfStringsAreEqual
java.lang.Object
javatapas.string.DetermineIfStringsAreEqual
public class DetermineIfStringsAreEqual extends Object
Determine if two String are equal without having to check for Nulls.
Published at https://www.javatapas.com/string/Java-Determine-If-Strings-Are-Equal.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/DetermineIfStringsAreEqual.html
Published at https://www.javatapas.com/string/Java-Determine-If-Strings-Are-Equal.html
Javadoc at https://www.javatapas.com/docs/javatapas/string/DetermineIfStringsAreEqual.html
- Version:
- 2021-05-29
- Author:
- Kodiak Brown
-
Constructor Summary
Constructors Constructor Description DetermineIfStringsAreEqual()
-
Method Summary
Modifier and Type Method Description static boolean
determineIfStringsAreEqual(String string1, String string2)
Note that the trimmed version of the two strings is compared.
-
Constructor Details
-
DetermineIfStringsAreEqual
public DetermineIfStringsAreEqual()
-
-
Method Details
-
determineIfStringsAreEqual
Note that the trimmed version of the two strings is compared. Also note that two null values are considered to be equal.- Parameters:
string1
- The first String in the pair to be compared.string2
- The second String in the pair to be compared.
-