Interface SkipConfiguration

All Known Subinterfaces:
Counter

public interface SkipConfiguration

Defines how the next orders are going to be skipped.


Example to create a subtype instance using the builder pattern

     SkipConfiguration skipConfiguration = SkipConfiguration.counterBuilder()
             totalToSkip(1)
             skipped(1)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • copyDeep

      SkipConfiguration copyDeep()
    • deepCopy

      @Nullable static SkipConfiguration deepCopy(@Nullable SkipConfiguration template)
      factory method to create a deep copy of SkipConfiguration
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • counterBuilder

      static CounterBuilder counterBuilder()
      builder for counter subtype
      Returns:
      builder
    • withSkipConfiguration

      default <T> T withSkipConfiguration(Function<SkipConfiguration,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<SkipConfiguration> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference