Class ComboMatcher<T>

java.lang.Object
de.ppi.deepsampler.persistence.api.ComboMatcher<T>
Type Parameters:
T - type to get matched in some sense
All Implemented Interfaces:
de.ppi.deepsampler.core.model.ParameterMatcher<T>

public class ComboMatcher<T>
extends java.lang.Object
implements de.ppi.deepsampler.core.model.ParameterMatcher<T>
Special matcher to apply a ParameterMatcher and a PersistentMatcher to a single argument when defining a sample.
This class will basically behave exactly like the given ParameterMatcher, but additionally it will hold a PersistentMatcher to retrieve it later in the loading process of persistent samples.
Never create ComboMatcher yourself! Always use PersistentMatchers.combo(Object, PersistentMatcher) for this.
  • Method Summary

    Modifier and Type Method Description
    de.ppi.deepsampler.core.model.ParameterMatcher<T> getParameterMatcher()  
    PersistentMatcher<T> getPersistentMatcher()  
    boolean matches​(T parameter)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getPersistentMatcher

      public PersistentMatcher<T> getPersistentMatcher()
      Returns:
      the hold PersistentMatcher
    • getParameterMatcher

      public de.ppi.deepsampler.core.model.ParameterMatcher<T> getParameterMatcher()
      Returns:
      the imitated ParameterMatcher
    • matches

      public boolean matches​(T parameter)
      Specified by:
      matches in interface de.ppi.deepsampler.core.model.ParameterMatcher<T>