01: /*
02: * Copyright (c) 2007 XStream Committers.
03: * All rights reserved.
04: *
05: * The software in this package is published under the terms of the BSD
06: * style license a copy of which has been included with this distribution in
07: * the LICENSE.txt file.
08: *
09: * Created on 30. March 2007 by Joerg Schaible
10: */
11: package com.thoughtworks.xstream.core.util;
12:
13: /**
14: * A placeholder for a <code>null</code> value of a specific type.
15: *
16: * @author Jörg Schaible
17: * @since 1.2.2
18: */
19: public class TypedNull {
20: private final Class type;
21:
22: public TypedNull(Class type) {
23: super ();
24: this .type = type;
25: }
26:
27: public Class getType() {
28: return this.type;
29: }
30: }
|