|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.molae.pipe.basic.ObjectProxy<B>
public class ObjectProxy<B>
Delegates all method calls to another object. Useful base class for proxies and other wrappers.
| Constructor Summary | |
|---|---|
ObjectProxy(B base)
Constructs a new proxy of the specified object. |
|
| Method Summary | |
|---|---|
static void |
assertNotNull(Object o)
Checks if the specified object is null. |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one. |
protected B |
getBase()
Returns the underlying base object. |
int |
hashCode()
Returns a hash code value for the object. |
String |
toString()
Returns a string representation of the object. |
static String |
toVerboseString(Object wrapper,
Object base)
Generates a string that contains the class of the wrapper and the string of the base object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectProxy(B base)
base - the underlying object.
NullPointerException - if the specified object is
null.| Method Detail |
|---|
protected final B getBase()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
null.
equals in class Objecto - the reference object with which to compare
true if this object equals the specified object.public String toString()
toString in class Objectpublic static void assertNotNull(Object o)
null.
o - the object that must not be null
NullPointerException - if the specified object is
null.
public static String toVerboseString(Object wrapper,
Object base)
wrapper - a wrapper objectbase - the base of the wrapper object
NullPointerException - if the specified wrapper is
null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||