revolutionary change in stopping optionals from being my biggest headache
This commit is contained in:
parent
d9c0cd4cac
commit
0f0fe0a0f9
2 changed files with 2 additions and 6 deletions
|
|
@ -29,8 +29,6 @@ public final class StOptional {
|
||||||
* @return boolean true if null or empty, false otherwise
|
* @return boolean true if null or empty, false otherwise
|
||||||
*/
|
*/
|
||||||
public static final boolean nullish(Optional<?> o) {
|
public static final boolean nullish(Optional<?> o) {
|
||||||
if (o == null || o.isEmpty())
|
return (o == null || o.isEmpty());
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,6 @@ final class StOptional {
|
||||||
* @return boolean true if null or empty, false otherwise
|
* @return boolean true if null or empty, false otherwise
|
||||||
*/
|
*/
|
||||||
public static final boolean nullish(Optional<?> o) {
|
public static final boolean nullish(Optional<?> o) {
|
||||||
if (o == null || o.isEmpty())
|
return (o == null || o.isEmpty());
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue