All Downloads are FREE. Search and download functionalities are using the official Maven repository.

autofixture.publicinterface.constraints.OtherThanConstraint Maven / Gradle / Ivy

There is a newer version: 2.1.10
Show newest version
package autofixture.publicinterface.constraints;

import java.util.Arrays;

/**
 * Created by astral on 27.03.15.
 */
public class OtherThanConstraint implements GenerationConstraint {
  private T[] array;

  public OtherThanConstraint(T... values) {
    this.array = values;
  }

  @Override
  public boolean doesNotAccept(T currentValue) {
    return Arrays.asList(array).contains(currentValue);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy