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

com.venafi.vcert.sdk.utils.Is Maven / Gradle / Ivy

Go to download

VCert is a Java library, SDK, designed to simplify key generation and enrollment of machine identities (also known as SSL/TLS certificates and keys) that comply with enterprise security policy by using the Venafi Platform or Venafi Cloud.

There is a newer version: 0.9.3
Show newest version
package com.venafi.vcert.sdk.utils;

import java.util.Collection;

public class Is {

  public static boolean blank(Collection collection) {
    return collection == null || collection.isEmpty();
  }

  public static boolean blank(byte[] array) {
    return array == null || array.length == 0;
  }

  /**
   *
   * @param left
   * @param right
   * @return
   * @see SO
   * @see explanation
   * @see Go version
   */
  public static boolean equalsFold(String left, String right) {
    return (left != null && right != null && left.toUpperCase().equals(right.toUpperCase()))
        || (left == null && right == null);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy