public class JBossObject extends java.lang.Object implements JBossInterface
| Modifier and Type | Field and Description |
|---|---|
protected int |
hashCode
Cached hashCode
|
protected org.jboss.logging.Logger |
log
The log
|
private static java.util.Map<java.lang.Class<?>,org.jboss.logging.Logger> |
loggers
The loggers
|
protected java.lang.ref.SoftReference |
toString
Cached toString
|
| Constructor and Description |
|---|
JBossObject()
Create a new object
|
JBossObject(org.jboss.logging.Logger log)
Create a new object using the specified Logger instace
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
cacheGetHashCode()
Whether we should cache the result hashCode()
|
protected boolean |
cacheToString()
Whether we should cache the result toString()
|
java.lang.Object |
clone()
Clone the object
|
private org.jboss.logging.Logger |
createLog()
Create logger.
|
static boolean |
equals(java.lang.Object one,
java.lang.Object two)
Safe equality check
|
protected void |
flushJBossObjectCache()
Flush the JBossObject cached values
|
java.lang.String |
getClassShortName()
Get the class short name
|
protected int |
getHashCode()
Calculate the hashcode
|
int |
hashCode()
Override hashCode to cache the value
|
static void |
list(JBossStringBuilder buffer,
java.util.Collection objects)
List the set of JBossObjects
|
static boolean |
notEqual(java.lang.Object one,
java.lang.Object two)
Safe inequality check
|
java.lang.String |
toShortString()
Print a short version of the object
|
void |
toShortString(JBossStringBuilder buffer)
Append the key class properties to the buffer
|
java.lang.String |
toString()
Override toString to cache the value
|
protected void |
toString(JBossStringBuilder buffer)
Append the class properties to the buffer
|
protected java.lang.String |
toStringImplementation()
Implementation of String
|
private static final java.util.Map<java.lang.Class<?>,org.jboss.logging.Logger> loggers
protected org.jboss.logging.Logger log
protected transient java.lang.ref.SoftReference toString
protected transient int hashCode
public JBossObject()
public JBossObject(org.jboss.logging.Logger log)
log - the Logger instance to useprivate org.jboss.logging.Logger createLog()
public static boolean equals(java.lang.Object one,
java.lang.Object two)
one - an objecttwo - another objectpublic static boolean notEqual(java.lang.Object one,
java.lang.Object two)
one - an objecttwo - another objectpublic static void list(JBossStringBuilder buffer, java.util.Collection objects)
buffer - the bufferobjects - the collection of objectspublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
JBossInterfaceclone in interface JBossInterfaceclone in class java.lang.Objectpublic java.lang.String toShortString()
JBossInterfacetoShortString in interface JBossInterfacepublic void toShortString(JBossStringBuilder buffer)
toShortString in interface JBossInterfacebuffer - the bufferpublic java.lang.String getClassShortName()
protected java.lang.String toStringImplementation()
protected void flushJBossObjectCache()
protected void toString(JBossStringBuilder buffer)
buffer - the bufferprotected int getHashCode()
protected boolean cacheToString()
protected boolean cacheGetHashCode()