Class Replacement


  • public final class Replacement
    extends java.lang.Object
    Holder for replacements to support backward compatibility between old and new names and types of configuration parameters (CASSANDRA-15234)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Converters converter
      Converter to be used according to the old default unit which was provided as a suffix of the configuration parameter
      boolean deprecated  
      java.lang.String newName
      New name used for the configuration parameter
      java.lang.String oldName
      Old name of the configuration parameter
      java.lang.Class<?> oldType
      Old type of the configuration parameter
      java.lang.Class<?> parent
      Currently we use Config class
    • Constructor Summary

      Constructors 
      Constructor Description
      Replacement​(java.lang.Class<?> parent, java.lang.String oldName, java.lang.Class<?> oldType, java.lang.String newName, Converters converter, boolean deprecated)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValueFormatReplacement()  
      org.yaml.snakeyaml.introspector.Property toProperty​(org.yaml.snakeyaml.introspector.Property newProperty)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parent

        public final java.lang.Class<?> parent
        Currently we use Config class
      • oldName

        public final java.lang.String oldName
        Old name of the configuration parameter
      • oldType

        public final java.lang.Class<?> oldType
        Old type of the configuration parameter
      • newName

        public final java.lang.String newName
        New name used for the configuration parameter
      • converter

        public final Converters converter
        Converter to be used according to the old default unit which was provided as a suffix of the configuration parameter
      • deprecated

        public final boolean deprecated
    • Constructor Detail

      • Replacement

        public Replacement​(java.lang.Class<?> parent,
                           java.lang.String oldName,
                           java.lang.Class<?> oldType,
                           java.lang.String newName,
                           Converters converter,
                           boolean deprecated)
    • Method Detail

      • toProperty

        public org.yaml.snakeyaml.introspector.Property toProperty​(org.yaml.snakeyaml.introspector.Property newProperty)
      • isValueFormatReplacement

        public boolean isValueFormatReplacement()