Add since tags

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@492371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2007-01-04 00:42:05 +00:00
parent da8646f9c9
commit 80cd41f238
1 changed files with 22 additions and 0 deletions

View File

@ -738,6 +738,7 @@ public class StrBuilder implements Cloneable {
* *
* @param obj the object to append * @param obj the object to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(Object obj) { public StrBuilder appendln(Object obj) {
return append(obj).appendNewLine(); return append(obj).appendNewLine();
@ -749,6 +750,7 @@ public class StrBuilder implements Cloneable {
* *
* @param str the string to append * @param str the string to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(String str) { public StrBuilder appendln(String str) {
return append(str).appendNewLine(); return append(str).appendNewLine();
@ -762,6 +764,7 @@ public class StrBuilder implements Cloneable {
* @param startIndex the start index, inclusive, must be valid * @param startIndex the start index, inclusive, must be valid
* @param length the length to append, must be valid * @param length the length to append, must be valid
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(String str, int startIndex, int length) { public StrBuilder appendln(String str, int startIndex, int length) {
return append(str, startIndex, length).appendNewLine(); return append(str, startIndex, length).appendNewLine();
@ -773,6 +776,7 @@ public class StrBuilder implements Cloneable {
* *
* @param str the string buffer to append * @param str the string buffer to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(StringBuffer str) { public StrBuilder appendln(StringBuffer str) {
return append(str).appendNewLine(); return append(str).appendNewLine();
@ -786,6 +790,7 @@ public class StrBuilder implements Cloneable {
* @param startIndex the start index, inclusive, must be valid * @param startIndex the start index, inclusive, must be valid
* @param length the length to append, must be valid * @param length the length to append, must be valid
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(StringBuffer str, int startIndex, int length) { public StrBuilder appendln(StringBuffer str, int startIndex, int length) {
return append(str, startIndex, length).appendNewLine(); return append(str, startIndex, length).appendNewLine();
@ -797,6 +802,7 @@ public class StrBuilder implements Cloneable {
* *
* @param str the string builder to append * @param str the string builder to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(StrBuilder str) { public StrBuilder appendln(StrBuilder str) {
return append(str).appendNewLine(); return append(str).appendNewLine();
@ -810,6 +816,7 @@ public class StrBuilder implements Cloneable {
* @param startIndex the start index, inclusive, must be valid * @param startIndex the start index, inclusive, must be valid
* @param length the length to append, must be valid * @param length the length to append, must be valid
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(StrBuilder str, int startIndex, int length) { public StrBuilder appendln(StrBuilder str, int startIndex, int length) {
return append(str, startIndex, length).appendNewLine(); return append(str, startIndex, length).appendNewLine();
@ -821,6 +828,7 @@ public class StrBuilder implements Cloneable {
* *
* @param chars the char array to append * @param chars the char array to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(char[] chars) { public StrBuilder appendln(char[] chars) {
return append(chars).appendNewLine(); return append(chars).appendNewLine();
@ -834,6 +842,7 @@ public class StrBuilder implements Cloneable {
* @param startIndex the start index, inclusive, must be valid * @param startIndex the start index, inclusive, must be valid
* @param length the length to append, must be valid * @param length the length to append, must be valid
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(char[] chars, int startIndex, int length) { public StrBuilder appendln(char[] chars, int startIndex, int length) {
return append(chars, startIndex, length).appendNewLine(); return append(chars, startIndex, length).appendNewLine();
@ -844,6 +853,7 @@ public class StrBuilder implements Cloneable {
* *
* @param value the value to append * @param value the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(boolean value) { public StrBuilder appendln(boolean value) {
return append(value).appendNewLine(); return append(value).appendNewLine();
@ -854,6 +864,7 @@ public class StrBuilder implements Cloneable {
* *
* @param ch the value to append * @param ch the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(char ch) { public StrBuilder appendln(char ch) {
return append(ch).appendNewLine(); return append(ch).appendNewLine();
@ -864,6 +875,7 @@ public class StrBuilder implements Cloneable {
* *
* @param value the value to append * @param value the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(int value) { public StrBuilder appendln(int value) {
return append(value).appendNewLine(); return append(value).appendNewLine();
@ -874,6 +886,7 @@ public class StrBuilder implements Cloneable {
* *
* @param value the value to append * @param value the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(long value) { public StrBuilder appendln(long value) {
return append(value).appendNewLine(); return append(value).appendNewLine();
@ -884,6 +897,7 @@ public class StrBuilder implements Cloneable {
* *
* @param value the value to append * @param value the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(float value) { public StrBuilder appendln(float value) {
return append(value).appendNewLine(); return append(value).appendNewLine();
@ -894,6 +908,7 @@ public class StrBuilder implements Cloneable {
* *
* @param value the value to append * @param value the value to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendln(double value) { public StrBuilder appendln(double value) {
return append(value).appendNewLine(); return append(value).appendNewLine();
@ -907,6 +922,7 @@ public class StrBuilder implements Cloneable {
* *
* @param array the array to append * @param array the array to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendAll(Object[] array) { public StrBuilder appendAll(Object[] array) {
if (array != null && array.length > 0) { if (array != null && array.length > 0) {
@ -924,6 +940,7 @@ public class StrBuilder implements Cloneable {
* *
* @param coll the collection to append * @param coll the collection to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendAll(Collection coll) { public StrBuilder appendAll(Collection coll) {
if (coll != null && coll.size() > 0) { if (coll != null && coll.size() > 0) {
@ -942,6 +959,7 @@ public class StrBuilder implements Cloneable {
* *
* @param it the iterator to append * @param it the iterator to append
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendAll(Iterator it) { public StrBuilder appendAll(Iterator it) {
if (it != null) { if (it != null) {
@ -1041,6 +1059,7 @@ public class StrBuilder implements Cloneable {
* *
* @param separator the separator to use, null means no separator * @param separator the separator to use, null means no separator
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendSeparator(String separator) { public StrBuilder appendSeparator(String separator) {
if (separator != null && size() > 0) { if (separator != null && size() > 0) {
@ -1066,6 +1085,7 @@ public class StrBuilder implements Cloneable {
* *
* @param separator the separator to use * @param separator the separator to use
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendSeparator(char separator) { public StrBuilder appendSeparator(char separator) {
if (size() > 0) { if (size() > 0) {
@ -1093,6 +1113,7 @@ public class StrBuilder implements Cloneable {
* @param separator the separator to use, null means no separator * @param separator the separator to use, null means no separator
* @param loopIndex the loop index * @param loopIndex the loop index
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendSeparator(String separator, int loopIndex) { public StrBuilder appendSeparator(String separator, int loopIndex) {
if (separator != null && loopIndex > 0) { if (separator != null && loopIndex > 0) {
@ -1119,6 +1140,7 @@ public class StrBuilder implements Cloneable {
* @param separator the separator to use * @param separator the separator to use
* @param loopIndex the loop index * @param loopIndex the loop index
* @return this, to enable chaining * @return this, to enable chaining
* @since 2.3
*/ */
public StrBuilder appendSeparator(char separator, int loopIndex) { public StrBuilder appendSeparator(char separator, int loopIndex) {
if (loopIndex > 0) { if (loopIndex > 0) {