@@ -0,0 +1,1615 @@
+/*%0A * Copyright (c) 2013-2015 Cinchapi, Inc.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.cinchapi.concourse.util;%0A%0Aimport java.util.Collection;%0A%0Aimport com.google.common.base.Strings;%0A%0A/**%0A * Utilities for general Objects.%0A * %0A * @author jnelson%0A */%0Apublic class ObjectUtils %7B%0A%0A    /**%0A     * Return %7B@code true%7D if %7B@code value%7D is %7B@code null%7D or considered empty.%0A     * A value is considered empty if:%0A     * %3Cul%3E%0A     * %3Cli%3EIt is a collection with no members%3C/li%3E%0A     * %3Cli%3EIt is an array with a length of 0%3C/li%3E%0A     * %3Cli%3EIt is a string with no characters%3C/li%3E%0A     * %3C/ul%3E%0A     * %0A     * @param value%0A     * @return %7B@code true%7D if the object is considered null or empty%0A     */%0A    public static boolean isNullOrEmpty(Object value) %7B%0A        return value == null%0A                %7C%7C (value instanceof Collection && ((Collection%3C?%3E) value)%0A                        .isEmpty())%0A                %7C%7C (value.getClass().isArray() && ((Object%5B%5D) value).length == 0)%0A                %7C%7C (value instanceof String && Strings%0A                        .isNullOrEmpty((String) value));%0A    %7D%0A%7D%0A

add content back