public class JBossObject extends Object implements JBossInterface
Modifier and Type | Field and Description |
---|---|
protected int |
hashCode
Cached hashCode
|
protected org.jboss.logging.Logger |
log
The log
|
protected 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()
|
Object |
clone()
Clone the object
|
static boolean |
equals(Object one,
Object two)
Safe equality check
|
protected void |
flushJBossObjectCache()
Flush the JBossObject cached values
|
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,
Collection objects)
List the set of JBossObjects
|
static boolean |
notEqual(Object one,
Object two)
Safe inequality check
|
String |
toShortString()
Print a short version of the object
|
void |
toShortString(JBossStringBuilder buffer)
Append the key class properties to the buffer
|
String |
toString()
Override toString to cache the value
|
protected void |
toString(JBossStringBuilder buffer)
Append the class properties to the buffer
|
protected String |
toStringImplementation()
Implementation of String
|
protected org.jboss.logging.Logger log
protected transient SoftReference toString
protected transient int hashCode
public JBossObject()
public JBossObject(org.jboss.logging.Logger log)
log
- the Logger instance to usepublic static boolean equals(Object one, Object two)
one
- an objecttwo
- another objectpublic static boolean notEqual(Object one, Object two)
one
- an objecttwo
- another objectpublic static void list(JBossStringBuilder buffer, Collection objects)
buffer
- the bufferobjects
- the collection of objectspublic String toString()
public int hashCode()
public Object clone()
JBossInterface
clone
in interface JBossInterface
clone
in class Object
public String toShortString()
JBossInterface
toShortString
in interface JBossInterface
public void toShortString(JBossStringBuilder buffer)
toShortString
in interface JBossInterface
buffer
- the bufferpublic String getClassShortName()
protected String toStringImplementation()
protected void flushJBossObjectCache()
protected void toString(JBossStringBuilder buffer)
buffer
- the bufferprotected int getHashCode()
protected boolean cacheToString()
protected boolean cacheGetHashCode()
Copyright © 2018 JBoss by Red Hat. All rights reserved.