We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63fe9c commit 079fffeCopy full SHA for 079fffe
fj-core/src/main/java/org/fugerit/java/core/util/ObjectUtils.java
@@ -2,6 +2,14 @@
2
3
public class ObjectUtils {
4
5
+ public static <T> T objectWithDefault( T value, T def ) {
6
+ T res = def;
7
+ if ( value != null ) {
8
+ res = value;
9
+ }
10
+ return res;
11
12
+
13
public static String toDefaultString( Object obj, PropertyEntry ...entries ) {
14
StringBuilder b = new StringBuilder();
15
if ( obj != null ) {
0 commit comments