Here you can find the source of addNonNull(Object element, Collection result)
Parameter | Description |
---|---|
target | a parameter |
result | a parameter |
public static void addNonNull(Object element, Collection result)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { /**//w w w .j ava 2s . co m * @param target * @param result */ public static void addNonNull(Object element, Collection result) { if (element != null) { result.add(element); } } }