Interface FuzzyLocation.RangeResolver

  • All Superinterfaces:
    Serializable
    Enclosing class:
    FuzzyLocation

    public static interface FuzzyLocation.RangeResolver
    extends Serializable
    Determines how a FuzzyLocation should be treated when used as a normal Location. Use one of the implementations of this interface when creating a FuzzyLocation to specify how the fuzzy (inner/outer) properties are translated into the standard Location min and max properties. It is possible to write custom implementations of this to create FuzzyLocations with exotic behaviour.
    • Method Detail

      • resolveMin

        int resolveMin​(FuzzyLocation loc)
        Delegate for the getMin() method.
        Parameters:
        loc - The Location to resolve
        Returns:
        the resolved Min
      • resolveMax

        int resolveMax​(FuzzyLocation loc)
        Delegate for the getMax() method.
        Parameters:
        loc - The Location to resolve
        Returns:
        the resolved Max