Interface StateKeyReference

All Superinterfaces:
KeyReference

public interface StateKeyReference extends KeyReference

References a state by key.


Example to create an instance using the builder pattern

     StateKeyReference stateKeyReference = StateKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • of

      static StateKeyReference of()
      factory method
      Returns:
      instance of StateKeyReference
    • of

      static StateKeyReference of(StateKeyReference template)
      factory method to create a shallow copy StateKeyReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of StateKeyReference
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static StateKeyReferenceBuilder builder()
      builder factory method for StateKeyReference
      Returns:
      builder
    • builder

      static StateKeyReferenceBuilder builder(StateKeyReference template)
      create builder for StateKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStateKeyReference

      default <T> T withStateKeyReference(Function<StateKeyReference,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<StateKeyReference> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference