src/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java

changeset 1737
7a9ef837e57f
parent 1364
8db45b13526e
child 1741
4c43e51433ba
equal deleted inserted replaced
1736:74cd21f2c2fe 1737:7a9ef837e57f
1 /* 1 /*
2 * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
89 */ 89 */
90 public boolean isEmpty() { 90 public boolean isEmpty() {
91 return (stringContent.length() == 0); 91 return (stringContent.length() == 0);
92 } 92 }
93 93
94 public int charCount() {
95 return stringContent.length();
96 }
97
94 /** 98 /**
95 * {@inheritDoc} 99 * {@inheritDoc}
96 */ 100 */
97 public String toString() { 101 public String toString() {
98 return stringContent.toString(); 102 return stringContent.toString();

mercurial