Class Strings

java.lang.Object
org.web3j.utils.Strings

public class Strings extends Object
String utility functions.
  • Method Details

    • toCsv

      public static String toCsv(List<String> src)
    • join

      public static String join(List<String> src, String delimiter)
    • capitaliseFirstLetter

      public static String capitaliseFirstLetter(String string)
    • lowercaseFirstLetter

      public static String lowercaseFirstLetter(String string)
    • zeros

      public static String zeros(int n)
    • repeat

      public static String repeat(char value, int n)
    • isEmpty

      public static boolean isEmpty(String s)
      Returns true if the string is empty, otherwise false.
      Parameters:
      s - String value
      Returns:
      is given string is Empty or not
    • isBlank

      public static boolean isBlank(String s)
      Returns true if the string is empty or contains only white space codepoints, otherwise false.
      Parameters:
      s - String value
      Returns:
      is given string is Blank or not