Tag

ObjectUtils

1 views collected around this technical thread.

macrozheng
macrozheng
Jan 20, 2025 · Fundamentals

Master Elegant Null Checks in Java with Utility Classes

This article explains how to replace repetitive !=null checks in Java by identifying data types and using the appropriate Spring/Apache utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils, providing code examples and best‑practice guidelines.

ObjectUtilsStringUtilscoding best practices
0 likes · 8 min read
Master Elegant Null Checks in Java with Utility Classes
Selected Java Interview Questions
Selected Java Interview Questions
Dec 17, 2024 · Backend Development

Efficient and Elegant Null Checks in Java Using Utility Classes

This article explains how to perform efficient and elegant null checks in Java by first identifying the data type, then selecting the appropriate utility class such as StringUtils, ObjectUtils, Collections or CollectionUtils, and finally applying the class’s isEmpty method with code examples for strings, arrays, lists, maps, and more.

Backend DevelopmentObjectUtilsStringUtils
0 likes · 7 min read
Efficient and Elegant Null Checks in Java Using Utility Classes
Architecture Digest
Architecture Digest
Dec 9, 2024 · Fundamentals

Efficient Null Checks in Java Using Utility Classes

This article explains how to efficiently perform null checks in Java by selecting appropriate utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils for different data types, and also includes a brief notice about a free programmer book giveaway.

CollectionsObjectUtilsStringUtils
0 likes · 9 min read
Efficient Null Checks in Java Using Utility Classes