public class

ImmutableTypesMapper

extends MapperWrapper
java.lang.Object
   ↳ com.thoughtworks.xstream.mapper.MapperWrapper
     ↳ com.thoughtworks.xstream.mapper.ImmutableTypesMapper

Class Overview

Mapper that specifies which types are basic immutable types. Types that are marked as immutable will be written multiple times in the serialization stream without using references.

Summary

Public Constructors
ImmutableTypesMapper(Mapper wrapped)
ImmutableTypesMapper(ClassMapper wrapped)
This constructor is deprecated. As of 1.2, use ImmutableTypesMapper(Mapper)
Public Methods
void addImmutableType(Class type)
boolean isImmutableValueType(Class type)
Whether this type is a simple immutable value (int, boolean, String, URL, etc.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.mapper.MapperWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.mapper.Mapper

Public Constructors

public ImmutableTypesMapper (Mapper wrapped)

public ImmutableTypesMapper (ClassMapper wrapped)

This constructor is deprecated.
As of 1.2, use ImmutableTypesMapper(Mapper)

Public Methods

public void addImmutableType (Class type)

public boolean isImmutableValueType (Class type)

Whether this type is a simple immutable value (int, boolean, String, URL, etc. Immutable types will be repeatedly written in the serialized stream, instead of using object references.