@@ -0,0 +1,2098 @@
+/*%0A * Copyright (c) 2016 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 com.cinchapi.common.base;%0A%0A/**%0A * A utility class that assists with extracting information about the underlying%0A * platform (i.e. the operating system, architecture, etc)%0A * %0A * @author Jeff Nelson%0A */%0Apublic final class Platform %7B%0A%0A    /**%0A     * The name of the operating system on which the current JVM is running.%0A     */%0A    public static String OPERATING_SYSTEM = System.getProperty(%22os.name%22);%0A%0A    /**%0A     * Return %7B@code true%7D if current platform is Windows based.%0A     * %0A     * @return %7B@code true%7D if this is Windows%0A     */%0A    public static boolean isWindows() %7B%0A        return OPERATING_SYSTEM.toLowerCase().contains(%22windows%22);%0A    %7D%0A%0A    /**%0A     * Return %7B@code true%7D if current platform is OS X based.%0A     * %0A     * @return %7B@code true%7D if this is OS X%0A     */%0A    public static boolean isMacOsX() %7B%0A        return OPERATING_SYSTEM.toLowerCase().contains(%22os x%22);%0A    %7D%0A%0A    /**%0A     * Return %7B@code true%7D if current platform is Linux based.%0A     * %0A     * @return %7B@code true%7D if this is Linux%0A     */%0A    public static boolean isLinux() %7B%0A        String os = OPERATING_SYSTEM.toLowerCase();%0A        return os.contains(%22nix%22) %7C%7C os.contains(%22nux%22) %7C%7C os.contains(%22aix%22);%0A    %7D%0A%0A    /**%0A     * Return %7B@code true%7D if current platform is Solaris based.%0A     * %0A     * @return %7B@code true%7D if this is Solaris%0A     */%0A    public static boolean isSolaris() %7B%0A        return OPERATING_SYSTEM.toLowerCase().contains(%22solaris%22);%0A    %7D%0A%0A    private Platform() %7B/* noop */%0A    %7D%0A%7D%0A

add Platform util class