Interface MappingFunctions

All Known Implementing Classes:
MappingFunctionRegistry

public interface MappingFunctions
Read access to the functions that Unmatched.Computed fallbacks name. What Mappings.functions() hands out: a built Mappings cannot be changed through it, since a function replaced or removed after the mappings naming it were checked would change or break their answers. Functions are registered through Mappings.Builder.function(String, Function) or DefaultMappings.registerFunction(String, Function).
Since:
6.0
  • Method Details

    • lookup

      Parameters:
      name - function name, as referred to by Unmatched.Computed.ref()
      Returns:
      the function registered under that name
    • contains

      boolean contains(String name)
      Parameters:
      name - function name
      Returns:
      whether a function is registered under that name