@@ -0,0 +1,1951 @@
+/***********************************************************************%0A * Copyright (c) 1999-2006 The Apache Software Foundation.             *%0A * All rights reserved.                                                *%0A * ------------------------------------------------------------------- *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you *%0A * may not use this file except in compliance with the License. You    *%0A * 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     *%0A * implied.  See the License for the specific language governing       *%0A * permissions and limitations under the License.                      *%0A ***********************************************************************/%0A%0Apackage org.apache.spf.util;%0A%0Aimport java.util.List;%0A%0A%0Apublic class IPUtil %7B%0A    %0A    /**%0A     * Check if the given ipaddress array contains the provided ip.%0A     * %0A     * @param checkAddress%0A     *            The ip wich should be contained in the given ArrayList%0A     * @param addressList%0A     *            The ip ArrayList.%0A     * @return true or false%0A     */%0A    public static boolean checkAddressList(IPAddr checkAddress, List addressList) %7B%0A%0A        IPAddr aValue = null;%0A        for (int i = 0; i %3C addressList.size(); i++) %7B%0A%0A            aValue = (IPAddr) addressList.get(i);%0A%0A            if (checkAddress.getMaskedIPAddress().equals(%0A                    aValue.getMaskedIPAddress())) %7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A%7D%0A

Move IPUtil to util package