|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.thoughtworks.proxy.toys.nullobject.Null<T>
public class Null<T>
Toy factory to create proxies acting as Null Objects.
com.thoughtworks.proxy.toys.nullobject
Nested Class Summary | |
---|---|
static class |
Null.NullBuild<T>
|
Field Summary | |
---|---|
static Object |
NULL_OBJECT
The Null Object . |
static SortedMap<Object,Object> |
NULL_SORTED_MAP
Immutable Null Object implementation of SortedMap . |
static SortedSet<Object> |
NULL_SORTED_SET
Immutable Null Object implementation of SortedSet . |
Method Summary | ||
---|---|---|
static boolean |
isNullObject(Object object)
Determine whether an object was created by proxy(Class) . |
|
static boolean |
isNullObject(Object object,
ProxyFactory proxyFactory)
Determine whether an object was created by proxy(Class) using a special ProxyFactory with the builder. |
|
static
|
proxy(Class<T> type)
Creates a factory for proxy instances that is nullable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Object NULL_OBJECT
Object
.
public static final SortedMap<Object,Object> NULL_SORTED_MAP
SortedMap
.
public static final SortedSet<Object> NULL_SORTED_SET
SortedSet
.
Method Detail |
---|
public static <T> Null.NullBuild<T> proxy(Class<T> type)
type
- the type implemented by the proxy
public static boolean isNullObject(Object object)
proxy(Class)
.
object
- the object to examine
true
if the object is a Null proxy.public static boolean isNullObject(Object object, ProxyFactory proxyFactory)
proxy(Class)
using a special ProxyFactory with the builder.
object
- the object to examineproxyFactory
- the ProxyFactory
to use
true
if the object is a Null proxy.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |