本文整理了Java中java.lang.StringBuffer.appendNull()
方法的一些代码示例,展示了StringBuffer.appendNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StringBuffer.appendNull()
方法的具体详情如下:
包路径:java.lang.StringBuffer
类名称:StringBuffer
方法名:appendNull
暂无
代码示例来源:origin: robovm/robovm
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: robovm/robovm
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Appends the specified CharSequence to this buffer.
* <p>
* If the specified CharSequence is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified CharSequence is
* appended.
*
* @param s
* the CharSequence to append.
* @return this StringBuffer.
* @since 1.5
*/
public synchronized StringBuffer append(CharSequence s) {
if (s == null) {
appendNull();
} else {
append0(s, 0, s.length());
}
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Adds the string representation of the specified object to the end of this
* StringBuffer.
* <p>
* If the specified object is {@code null} the string {@code "null"} is
* appended, otherwise the objects {@code toString} is used to get its
* string representation.
*
* @param obj
* the object to append (may be null).
* @return this StringBuffer.
* @see String#valueOf(Object)
*/
public synchronized StringBuffer append(Object obj) {
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
}
代码示例来源:origin: MobiVM/robovm
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
代码示例来源:origin: ibinti/bugvm
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Adds the specified StringBuffer to the end of this buffer.
* <p>
* If the specified StringBuffer is {@code null} the string {@code "null"}
* is appended, otherwise the contents of the specified StringBuffer is
* appended.
*
* @param sb
* the StringBuffer to append (may be null).
* @return this StringBuffer.
*
* @since 1.4
*/
public synchronized StringBuffer append(StringBuffer sb) {
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
}
内容来源于网络,如有侵权,请联系作者删除!