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
Constructors Constructor Description ConverterImpl(com.thoughtworks.xstream.converters.Converter collectionConv)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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
serialize(Fingerprint.RangeSet src)
Used to serialize the range sets (builds) of the fingerprint using commas and dashes.Object
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class type)
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
public static String serialize(Fingerprint.RangeSet src)
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
-
-