Apache Commons Lang 3
ObjectUtils.firstNonNull(T...)
Java 8 Stream
Stream.of(T...).filter(Objects::nonNull).findFirst().orElse(null)
More Related Contents:
- can't input value for string?
- How to calculate remaining days of the month? [duplicate]
- What’s the best way to share data between activities?
- Read/Write String from/to a File in Android
- How to resolve a Java Rounding Double issue [duplicate]
- How do I use annotations to define different types of relationships in Hibernate 4 and Spring?
- SQL parser library for Java [closed]
- Intellij IDEA Java classes not auto compiling on save
- How to remove single character from a String
- How to solve the “Double-Checked Locking is Broken” Declaration in Java?
- A single-line loop with a mandatory pair of braces in Java
- Best practice for passing many arguments to method?
- How to set connection timeout with OkHttp
- What is perm space?
- Fast CSV parsing
- Could not find artifact com.sun:tools:jar:0
- What is a good solution for calculating an average where the sum of all values exceeds a double’s limits?
- Is it possible to generate a XSD from a JAXB-annotated class?
- Can’t connect to MySQL from Java: NullPointerException inside MySQL driver connection logic
- How to verify that a specific method was not called using Mockito?
- How can I convert ArrayList to ArrayList?
- What time zone does Date.toString() display?
- Spring: Make sure a particular bean gets initialized first
- How to create a test directory in Intellij 13?
- ArrayList vs. Vectors in Java if thread safety isn’t a concern
- Where to get “UTF-8” string literal in Java?
- getting result set into DTO with native SQL Query in Hibernate
- Specifying order of execution in JUnit test case [duplicate]
- Java – How to visually center a specific string (not just a font) in a rectangle
- HTTP Status 500 – Error instantiating servlet class pkg.coreServlet