Package com.thoughtworks.xstream.mapper
Class LambdaMapper
- java.lang.Object
-
- com.thoughtworks.xstream.mapper.MapperWrapper
-
- com.thoughtworks.xstream.mapper.LambdaMapper
-
- All Implemented Interfaces:
Mapper
public class LambdaMapper extends MapperWrapper
Mapper to map serializable lambda types to the name of their functional interface and non-serializable ones to Mapper.Null.- Since:
- 1.4.8
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
-
Constructor Summary
Constructors Constructor Description LambdaMapper(Mapper wrapped)
Constructs a LambdaMapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
serializedClass(java.lang.Class type)
How a class name should be represented in its serialized form.-
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedMember, shouldSerializeMember
-
-
-
-
Constructor Detail
-
LambdaMapper
public LambdaMapper(Mapper wrapped)
Constructs a LambdaMapper.- Parameters:
wrapped
- mapper- Since:
- 1.4.8
-
-
Method Detail
-
serializedClass
public java.lang.String serializedClass(java.lang.Class type)
Description copied from interface:Mapper
How a class name should be represented in its serialized form.- Specified by:
serializedClass
in interfaceMapper
- Overrides:
serializedClass
in classMapperWrapper
-
-