// Path: src/main/java/com/moozvine/detox/FieldValidator.java
// public abstract class FieldValidator<T> {
//   public abstract void validate(String fieldName, T t);
// }


import com.moozvine.detox.FieldValidator;
package com.moozvine.detox.validators;


public class NegativeLong extends FieldValidator<Long> {
  @Override
  public void validate(final String fieldName, final Long value) {
    if (value >= 0) {
// Path: src/main/java/com/moozvine/detox/FieldValidator.java
// public abstract class FieldValidator<T> {
//   public abstract void validate(String fieldName, T t);
// }


// Path: src/main/java/com/moozvine/detox/validators/NegativeLong.java
import com.moozvine.detox.FieldValidator;

package com.moozvine.detox.validators;


public class NegativeLong extends FieldValidator<Long> {
  @Override
  public void validate(final String fieldName, final Long value) {
    if (value >= 0) {
      throw new IllegalArgumentException("Given value (" + value + ") for " + fieldName + " is not negative.");