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

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

There is a newer version: 0.9.14
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]";
  }

}