public class Null<T> extends Object
com.thoughtworks.proxy.toys.nullobject
Modifier and Type | Class and Description |
---|---|
static class |
Null.NullBuild<T> |
Modifier and Type | Field and Description |
---|---|
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 . |
Modifier and Type | Method and Description |
---|---|
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 <T> Null.NullBuild<T> |
proxy(Class<T> type)
Creates a factory for proxy instances that is nullable.
|
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
.public static <T> Null.NullBuild<T> proxy(Class<T> type)
type
- the type implemented by the proxypublic static boolean isNullObject(Object object)
proxy(Class)
.object
- the object to examinetrue
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 usetrue
if the object is a Null proxy.Copyright © 2005–2018 Codehaus. All rights reserved.