public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append("["); buffer.append(annotated); buffer.append("]"); return buffer.toString(); }
public String toShortString() { JBossStringBuilder buffer = new JBossStringBuilder(); toShortString(buffer); return buffer.toString(); }
/** * Safe inequality check * * @param one an object * @param two another object * @return true when they are not equal */ public static boolean notEqual(Object one, Object two) { return equals(one, two) == false; }
/** * Override hashCode to cache the value * * @return the hashCode */ public int hashCode() { if (hashCode == Integer.MIN_VALUE || cacheGetHashCode() == false) hashCode = getHashCode(); return hashCode; }
/** * Construct an ArrayIterator. * * @param array The array to iterate over. */ public ArrayIterator(final Object[] array) { if (array == null) throw new NullArgumentException("array"); this.array = array; }
/** * Add the hash-code of the given object. * * @param obj Value to get hash-code from. * @return <i>This</i> <tt>HashCode</tt>. */ public HashCode add(final Object obj) { value ^= generate(obj); return this; }
/** * Create a new object */ public JBossObject() { log = createLog(); }
/** * Schedules the given TimerTask for immediate execution. * @param t */ public void schedule(TimerTask t) { schedule(t, 0); } /**
/** * Creates a new Heap whose elements are compared using the given * {@link Comparator}. * @param comparator */ public Heap(Comparator comparator) { m_comparator = comparator; clear(); }
/** * Prints the composite message and the embedded stack trace to * <tt>System.err</tt>. */ public void printStackTrace() { printStackTrace(System.err); } }
/** * Construct a <tt>NestedException</tt> with the specified detail * message and nested <tt>Throwable</tt>. * * @param msg Detail message. * @param nested Nested <tt>Throwable</tt>. */ public NestedException(final String msg, final Throwable nested) { super(msg); this.nested = nested; NestedThrowable.Util.checkNested(this, nested); }
/** * Trim leading whitespace from the given String. * * @param str the string to check * @return the trimmed String * @see java.lang.Character#isWhitespace(char) */ public static String trimLeadingWhitespace(String str) { return trimLeadingCharacter(str, CharacterChecker.WHITESPACE); }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append('['); buffer.append("impl=").append(impl); buffer.append(']'); return buffer.toString(); } }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append('['); buffer.append("name=").append(name); buffer.append(']'); return buffer.toString(); } }
public String toString() { JBossStringBuilder buffer = new JBossStringBuilder(); Strings.defaultToString(buffer, this); buffer.append("["); buffer.append(annotated); buffer.append("]"); return buffer.toString(); } }