java.lang.Object
com.thebuzzmedia.exiftool.commons.lang.Strings

public final class Strings extends Object
Static String Utilities.
  • Method Details

    • isNotEmpty

      public static boolean isNotEmpty(String value)
      Check that given string is not null or empty.
      Parameters:
      value - Given string to check.
      Returns:
      true if value is null or empty.
    • tryParseInt

      public static Optional<Integer> tryParseInt(String value)
      Try to parse a string as an Integer and return the value if valid, or an Optional empty if not.
      Parameters:
      value - The string to convert to an Integer
      Returns:
      Optional Integer which will be poresent if valid, and empty if not.