Package hudson.model
Class Fingerprint.RangeSet.ConverterImpl
java.lang.Object
hudson.model.Fingerprint.RangeSet.ConverterImpl
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
- Enclosing class:
- Fingerprint.RangeSet
public static final class Fingerprint.RangeSet.ConverterImpl
extends Object
implements com.thoughtworks.xstream.converters.Converter
Converter Implementation for RangeSet.
- Since:
- 2.253
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) Check if the given class can be converted (i.e.void
marshal
(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) static String
Used to serialize the range sets (builds) of the fingerprint using commas and dashes.unmarshal
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
Constructor Details
-
ConverterImpl
public ConverterImpl(com.thoughtworks.xstream.converters.Converter collectionConv)
-
-
Method Details
-
canConvert
Check if the given class can be converted (i.e. check if it is of type RangeSet).- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) - Specified by:
marshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
serialize
Used to serialize the range sets (builds) of the fingerprint using commas and dashes. For e.g., if used in builds 1,2,3,5, it will be serialized to 1-3,5 -
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) - Specified by:
unmarshal
in interfacecom.thoughtworks.xstream.converters.Converter
-