/** * Constructs a new {@code AssertionError} with a message based on calling * {@link String#valueOf(long)} with the specified long value. * * @param detailMessage * the value to be converted into the message. */ public AssertionError(long detailMessage) : this(Long.toString(detailMessage)) { }
/** * Converts the specified long to its string representation. * * @param value * the long. * @return the long converted to a string. */ public static String valueOf(long value) { return(Long.toString(value)); }
/* * Inserts the string representation of the specified {@code long} value at * the specified {@code offset}. The {@code long} value is converted to a * String according to the rule defined by {@link String#valueOf(long)}. * * @param offset * the index to insert at. * @param l * the {@code long} value to insert. * @return this builder. * @throws StringIndexOutOfBoundsException * if {@code offset} is negative or greater than the current * {code length()}. * @see String#valueOf(long) */ public StringBuilder insert(int offset, long l) { insert0(offset, Long.toString(l)); return(this); }
/* * Appends the string representation of the specified {@code long} value. * The {@code long} value is converted to a string according to the rule * defined by {@link String#valueOf(long)}. * * @param lng * the {@code long} value. * @return this builder. * @see String#valueOf(long) */ public StringBuilder append(long lng) { append0(Long.toString(lng)); return(this); }
/* * Inserts the string representation of the specified long into this buffer * at the specified offset. * * @param index * the index at which to insert. * @param l * the long to insert. * @return this buffer. * @throws StringIndexOutOfBoundsException * if {@code index < 0} or {@code index > length()}. */ public java.lang.StringBuffer insert(int index, long l) { return(insert(index, Long.toString(l))); }
/* * Adds the string representation of the specified long to the end of this * StringBuffer. * * @param l * the long to append. * @return this StringBuffer. * @see String#valueOf(long) */ public java.lang.StringBuffer append(long l) { return(append(Long.toString(l))); }