org.springframework.core.convert.converter

Class GenericConverter.ConvertiblePair

  • java.lang.Object
    • org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
  • Enclosing interface:
    GenericConverter


    public static final class GenericConverter.ConvertiblePair
    extends java.lang.Object
    Holder for a source-to-target class pair.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConvertiblePair(java.lang.Class<?> sourceType, java.lang.Class<?> targetType)
      Create a new source-to-target pair.
    • Constructor Detail

      • ConvertiblePair

        public ConvertiblePair(java.lang.Class<?> sourceType,
                               java.lang.Class<?> targetType)
        Create a new source-to-target pair.
        Parameters:
        sourceType - the source type
        targetType - the target type
    • Method Detail

      • getSourceType

        public java.lang.Class<?> getSourceType()
      • getTargetType

        public java.lang.Class<?> getTargetType()
      • equals

        public boolean equals(@Nullable
                              java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object