public static String toString(Object obj) { return DefaultGroovyMethods.toString(obj); }
/** * Appends the String representation of the given operand to this CharSequence. * * @param left a CharSequence * @param value any Object * @return the original toString() of the CharSequence with the object appended * @since 1.8.2 */ public static String plus(CharSequence left, Object value) { return left + DefaultGroovyMethods.toString(value); }
/** * Appends a String to the string representation of this number. * * @param value a Number * @param right a String * @return a String * @since 1.0 */ public static String plus(Number value, String right) { return DefaultGroovyMethods.toString(value) + right; }
@Override public String toString() { return DefaultGroovyMethods.toString(getDelegate()); }
/** * Remove a part of a CharSequence by replacing the first occurrence * of target within self with '' and returns the result. * * @param self a CharSequence * @param target an object representing the part to remove * @return a String containing the original minus the part to be removed * @see #minus(String, Object) * @since 1.8.2 */ public static String minus(CharSequence self, Object target) { String s = self.toString(); String text = DefaultGroovyMethods.toString(target); int index = s.indexOf(text); if (index == -1) return s; int end = index + text.length(); if (s.length() > end) { return s.substring(0, index) + s.substring(end); } return s.substring(0, index); }
/** * Appends the String representation of the given operand to this string. * * @param left a String * @param value any Object * @return the new string with the object appended */ public static String plus(String left, Object value) { return left + toString(value); }
/** * Appends the String representation of the given operand to this string. * * @param left a String * @param value any Object * @return the new string with the object appended * @since 1.0 */ public static String plus(String left, Object value) { return left + toString(value); }
/** * Appends a String to the string representation of this number. * * @param value a Number * @param right a String * @return a String * @since 1.0 */ public static String plus(Number value, String right) { return toString(value) + right; }
/** * Appends a String to the string representation of this number. * * @param value a Number * @param right a String * @return a String */ public static String plus(Number value, String right) { return toString(value) + right; }
/** * Appends the String representation of the given operand to this string. * * @param left a String * @param value any Object * @return the new string with the object appended * @since 1.0 */ public static String plus(String left, Object value) { return left + toString(value); }
/** * Appends the String representation of the given operand to this string. * * @param left a CharSequence * @param value any Object * @return the new CharSequence with the object appended * @since 1.8.2 */ public static CharSequence plus(CharSequence left, Object value) { return left + toString(value); }
/** * Appends a String to the string representation of this number. * * @param value a Number * @param right a String * @return a String * @since 1.0 */ public static String plus(Number value, String right) { return toString(value) + right; }
/** * Appends a String to the string representation of this number. * * @param value a Number * @param right a String * @return a String * @since 1.0 */ public static String plus(Number value, String right) { return toString(value) + right; }
/** * Appends the String representation of the given operand to this string. * * @param left a String * @param value any Object * @return the new string with the object appended * @since 1.0 */ public static String plus(String left, Object value) { return left + toString(value); }
public RequiredPageValueNotPresent(PageContentTemplate template, Object[] args) { super(String.format("Template '%s' returned null for args: '%s'", template, DefaultGroovyMethods.toString(args))); this.template = template; }
public UnexpectedPageException(Class<? extends Page>[] potentials) { super(String.format("unable to find page match (given potentials: %s)", DefaultGroovyMethods.toString(potentials))); }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); } }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); } }
public String toString() { return DefaultGroovyMethods.toString(getDelegate()); }
public String toString() { return DefaultGroovyMethods.toString((Map) getDelegate()); }