package it.integry.integrywmsnative.core.coollection.matcher.custom;

import it.integry.integrywmsnative.core.coollection.matcher.Matcher;

public class LessThan implements Matcher {

  private final Number value;

  public LessThan(Number value) {
    this.value = value;
  }

  @Override
  public boolean match(Object matchValue) {
    if (matchValue == null) {
      return false;
    }
    return ((Number) matchValue).doubleValue() < value.doubleValue();
  }

}
