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

io.honeybadger.com.github.mustachejava.reflect.guards.NullGuard Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package com.github.mustachejava.reflect.guards;

import com.github.mustachejava.reflect.Guard;

import java.util.List;

public class NullGuard implements Guard {
  @Override
  public boolean apply(List objects) {
    return objects.get(0) == null;
  }

  public String toString() {
    return "[NullGuard]";
  }

}