Class MapUtils

java.lang.Object
com.nimbusds.oauth2.sdk.util.MapUtils

public final class MapUtils extends Object
Map utilities. Replicates Apache Commons Collections.
  • Method Details

    • isEmpty

      public static boolean isEmpty(Map<?,?> map)
      Returns true if the specified map is null or empty.
      Parameters:
      map - The map. May be null.
      Returns:
      true if the map is null or empty, else false.
    • isNotEmpty

      public static boolean isNotEmpty(Map<?,?> map)
      Returns true if the specified map is not null and not empty.
      Parameters:
      map - The map. May be null.
      Returns:
      true if the map is not null and not empty, else false.