Class PropertyHistory

java.lang.Object
io.deephaven.configuration.PropertyHistory

public class PropertyHistory extends Object
A simple datastore to record one step in the history of a property. A property may have its value overwritten by subsequent declarations or in subsequent files, but it is convenient to be able to identify what the active value of a property is, where that value was created, and what other values the property may have been assigned by other files before getting to this final value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The full string of the active context.
    final String
    The name of the file where the property value was set, or a note that the value was not set by a configuration file.
    final int
    The number of the line within the file where the property value was set.
    final String
    The value that the property was set to by the specified line number in the specified file.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PropertyHistory(String fileName, int lineNumber, String value, String context)
    Create a PropertyHistory element.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • fileName

      public final String fileName
      The name of the file where the property value was set, or a note that the value was not set by a configuration file.
    • lineNumber

      public final int lineNumber
      The number of the line within the file where the property value was set. If the property value was not set via a configuration file (such as a system property or a programmatic change of value), then this should be 0.
    • value

      public final String value
      The value that the property was set to by the specified line number in the specified file.
    • context

      public final String context
      The full string of the active context.
  • Constructor Details

    • PropertyHistory

      public PropertyHistory(String fileName, int lineNumber, String value, String context)
      Create a PropertyHistory element.
      Parameters:
      fileName - The name of the file where this property value was set
      lineNumber - The number of the line within the file where this property value was set.
      value - The value this property was set to on the specified line in the specified file.