2362N/A * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Class HashDocAttributeSet provides an attribute set which 0N/A * inherits its implementation from class {@link HashAttributeSet 0N/A * HashAttributeSet} and enforces the semantic restrictions of interface {@link 0N/A * DocAttributeSet DocAttributeSet}. 0N/A * @author Alan Kaminsky 0N/A * Construct a new, empty hash doc attribute set. 0N/A * Construct a new hash doc attribute set, 0N/A * initially populated with the given value. 0N/A * @param attribute Attribute value to add to the set. 0N/A * @exception NullPointerException 0N/A * (unchecked exception) Thrown if <CODE>attribute</CODE> is null. 0N/A * Construct a new hash doc attribute set, 0N/A * initially populated with the values from the given array. 0N/A * The new attribute set is populated by 0N/A * adding the elements of <CODE>attributes</CODE> array to the set in 0N/A * sequence, starting at index 0. Thus, later array elements may replace 0N/A * earlier array elements if the array contains duplicate attribute 0N/A * values or attribute categories. 0N/A * @param attributes Array of attribute values to add to the set. 0N/A * If null, an empty attribute set is constructed. 0N/A * @exception NullPointerException 0N/A * (unchecked exception) 0N/A * Thrown if any element of <CODE>attributes</CODE> is null. 0N/A * Construct a new attribute set, initially populated with the 0N/A * values from the given set where the members of the attribute set 0N/A * are restricted to the <code>DocAttribute</code> interface. 0N/A * @param attributes set of attribute values to initialise the set. If 0N/A * null, an empty attribute set is constructed. 0N/A * @exception ClassCastException 0N/A * (unchecked exception) Thrown if any element of 0N/A * <CODE>attributes</CODE> is not an instance of 0N/A * <CODE>DocAttribute</CODE>.