Class MappingContext.Builder

java.lang.Object
com.helixframework.mapper.MappingContext.Builder
Enclosing class:
MappingContext

public static final class MappingContext.Builder extends Object
Fluent builder for immutable mapping contexts.
  • Method Details

    • put

      public MappingContext.Builder put(String key, Object value)
      Adds a key and value to the mapping context.
      Parameters:
      key - the key to add
      value - the value to add
      Returns:
      the builder
    • putAll

      public MappingContext.Builder putAll(Map<String,?> additionalValues)
      Adds all provided values to the mapping context.
      Parameters:
      additionalValues - the values to add
      Returns:
      the builder
    • build

      public MappingContext build()
      Builds an immutable mapping context.
      Returns:
      the mapping context