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

net.zerobuilder.NullPolicy Maven / Gradle / Ivy

There is a newer version: 1.603
Show newest version
package net.zerobuilder;

public enum NullPolicy {

  ALLOW {
    @Override
    public boolean check() {
      return false;
    }
  },

  REJECT {
    @Override
    public boolean check() {
      return true;
    }
  },

  /**
   * Use inherited, or {@link #ALLOW}
   * if nothing is inherited or inherited is also {@link #DEFAULT}
   */
  DEFAULT {
    @Override
    public boolean check() {
      throw new UnsupportedOperationException("not implemented");
    }
  };

  public abstract boolean check();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy