/** * 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; }
public AbstractDemandMetaData clone() { return (AbstractDemandMetaData)super.clone(); } }
/** * Override hashCode to cache the value * * @return the hashCode */ public int hashCode() { if (hashCode == Integer.MIN_VALUE || cacheGetHashCode() == false) hashCode = getHashCode(); return hashCode; }
/** * Override toString to cache the value * * @return the String */ public String toString() { if (cacheToString() == false) return toStringImplementation(); String result = null; if (toString != null) result = (String) toString.get(); if (result == null) { result = toStringImplementation(); toString = new SoftReference(result); } return result; }
public String toShortString() { JBossStringBuilder buffer = new JBossStringBuilder(); toShortString(buffer); return buffer.toString(); }
/** * Implementation of String * * @return the string */ protected String toStringImplementation() { JBossStringBuilder buffer = new JBossStringBuilder(); buffer.append(getClassShortName()).append('@'); buffer.append(Integer.toHexString(System.identityHashCode(this))); buffer.append('{'); toString(buffer); buffer.append('}'); return buffer.toString(); }
@Override protected int getHashCode() { // TODO Auto-generated method stub return super.getHashCode(); }
public void toString(JBossStringBuilder buffer) { buffer.append("name=").append(name); buffer.append(" extends=").append(ext); buffer.append(" scope=").append(scope); super.toString(buffer); buffer.append(" bindings=").append(bindings); }
/** * List the set of JBossObjects * * @param buffer the buffer * @param objects the collection of objects */ public static void list(JBossStringBuilder buffer, Collection objects) { if (objects == null) return; buffer.append('['); if (objects.isEmpty() == false) { for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof JBossObject) ((JBossObject) object).toShortString(buffer); else buffer.append(object.toString()); if (i.hasNext()) buffer.append(", "); } } buffer.append(']'); }
public boolean match(Object other) { return JBossObject.equals(value, other); }
public AbstractDependencyMetaData clone() { return (AbstractDependencyMetaData)super.clone(); } }
public void toShortString(JBossStringBuilder buffer) { buffer.append(name); buffer.append('/'); buffer.append(ext); buffer.append('/'); buffer.append(scope); buffer.append('/'); super.toShortString(buffer); buffer.append('/'); buffer.append(bindings); } }
public boolean equals(Object obj) { if (obj instanceof RelatedClassMetaData == false) return false; RelatedClassMetaData rcmd = (RelatedClassMetaData)obj; if (getClassName().equals(rcmd.getClassName()) == false) return false; return JBossObject.equals(enabled, rcmd.getEnabled()); }
public DirectAnnotationMetaData clone() { return (DirectAnnotationMetaData)super.clone(); } }
return JBossObject.equals(first, second);
public AbstractClassMetaData clone() { return (AbstractClassMetaData)super.clone(); } }
public AbstractAliasMetaData clone() { return (AbstractAliasMetaData)super.clone(); } }
public AbstractSupplyMetaData clone() { return (AbstractSupplyMetaData)super.clone(); } }