Last active
November 6, 2022 09:59
-
-
Save japborst/bb7c027acca2454c25ea6687e7dfdb4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static final class StringIsEmpty { | |
@BeforeTemplate | |
boolean equalsEmptyString(String string) { | |
return string.equals(""); | |
} | |
@BeforeTemplate | |
boolean lengthEquals0(String string) { | |
return string.length() == 0; | |
} | |
@AfterTemplate | |
boolean after(String string) { | |
return string.isEmpty(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ePaul thanks for pointing out, that was indeed a typo.