Class MapComparisonContext

java.lang.Object
me.datafox.dfxengine.values.api.comparison.ComparisonContext
me.datafox.dfxengine.values.api.comparison.MapComparisonContext

public class MapComparisonContext extends ComparisonContext
Context used when doing Comparisons on ValueMaps. In addition to the options in ComparisonContext, treatNonExistingAs() determines a Numeral value that is used as the default input Numeral when a Handle key is requested that is not present in the map. A null value represents that these Handles should be ignored instead. It is set to null by default.
  • Constructor Details

    • MapComparisonContext

      public MapComparisonContext()
  • Method Details

    • treatNonExistingAs

      public Numeral treatNonExistingAs()
      Returns:
      Numeral to be used as an input if a Handle key is requested that is not present in the ValueMap, or null if these Handles should be ignored instead
    • defaults

      public static MapComparisonContext defaults()
      Returns:
      MapComparisonContext with default values