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

    Modifier and Type
    Method
    Description
    boolean
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConverterImpl

      public ConverterImpl(com.thoughtworks.xstream.converters.Converter collectionConv)
  • Method Details

    • 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.io.HierarchicalStreamWriter writer, 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(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter