/[classpath]/classpath/java/text/AttributedString.java
ViewVC logotype

Diff of /classpath/java/text/AttributedString.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8.2.4 by gnu_andrew, Wed Nov 2 00:43:36 2005 UTC revision 1.8.2.5 by tromey, Fri Nov 25 22:30:45 2005 UTC
# Line 52  import java.util.Set; Line 52  import java.util.Set;
52   * information via the <code>AttributedCharacterIterator</code> interface.   * information via the <code>AttributedCharacterIterator</code> interface.
53   *   *
54   * @author Aaron M. Renn (arenn@urbanophile.com)   * @author Aaron M. Renn (arenn@urbanophile.com)
55     * @since 1.2
56   */   */
57  public class AttributedString  public class AttributedString
58  {  {
# Line 116  public class AttributedString Line 117  public class AttributedString
117     * @param str The <code>String</code> to be attributed.     * @param str The <code>String</code> to be attributed.
118     * @param attributes The attribute list.     * @param attributes The attribute list.
119     */     */
120    public AttributedString(String str, Map attributes)    public AttributedString(String str,
121                              Map<? extends AttributedCharacterIterator.Attribute, ?> attributes)
122    {    {
123      this(str);      this(str);
124    
# Line 300  public class AttributedString Line 302  public class AttributedString
302     *         <code>null</code>.     *         <code>null</code>.
303     * @throws IllegalArgumentException if the subrange is not valid.     * @throws IllegalArgumentException if the subrange is not valid.
304     */     */
305    public void addAttributes(Map attributes, int begin_index, int end_index)    public void addAttributes(Map<? extends AttributedCharacterIterator.Attribute, ?> attributes,
306                                int begin_index, int end_index)
307    {    {
308      if (attributes == null)      if (attributes == null)
309        throw new NullPointerException("null attribute");        throw new NullPointerException("null attribute");

Legend:
Removed from v.1.8.2.4  
changed lines
  Added in v.1.8.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26