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

com.iodesystems.fn.aspects.Values Maven / Gradle / Ivy

Go to download

Fn is a lazy Java Library that helps utilize some rudimentary functional concepts with more nounular objects

There is a newer version: 3.0.4
Show newest version
package com.iodesystems.fn.aspects;

public class Values {

  public static  A ifNull(A thing, A ifNull) {
    if (thing == null) {
      return ifNull;
    }
    return thing;
  }

  public static  boolean isEqual(A value, A value1) {
    if (value == null) {
      return value1 == null;
    }
    return value.equals(value1);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy