Package hudson.model

Class Fingerprint.RangeSet.ConverterImpl

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
    Enclosing class:

    public static final class Fingerprint.RangeSet.ConverterImpl
    extends Object
    implements com.thoughtworks.xstream.converters.Converter
    Converter Implementation for RangeSet.
    • Constructor Detail

      • ConverterImpl

        public ConverterImpl​(com.thoughtworks.xstream.converters.Converter collectionConv)
    • 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 interface com.thoughtworks.xstream.converters.ConverterMatcher
      • marshal

        public void marshal​(Object source,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
        Specified by:
        marshal in interface com.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​( reader,
                                com.thoughtworks.xstream.converters.UnmarshallingContext context)
        Specified by:
        unmarshal in interface com.thoughtworks.xstream.converters.Converter