Class Strings.MoreStringUtil

java.lang.Object
com.landawn.abacus.util.Strings.MoreStringUtil
Enclosing class:
Strings

public static final class Strings.MoreStringUtil extends Object
  • Method Details

    • substring

      public static u.Optional<String> substring(String str, int inclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, char delimiterOfInclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, String delimiterOfInclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, int inclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, int inclusiveBeginIndex, char delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, int inclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      funcOfExclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, char delimiterOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, String delimiterOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substring

      public static u.Optional<String> substring(String str, IntUnaryOperator funcOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      funcOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, int inclusiveBeginIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      inclusiveBeginIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, char delimiterOfInclusiveBeginIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, String delimiterOfInclusiveBeginIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, int inclusiveBeginIndex, int exclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      inclusiveBeginIndex -
      exclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, int inclusiveBeginIndex, char delimiterOfExclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, int inclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      inclusiveBeginIndex -
      funcOfExclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, char delimiterOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, String delimiterOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElse

      @Beta public static String substringOrElse(String str, IntUnaryOperator funcOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      funcOfInclusiveBeginIndex -
      exclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, int inclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, char delimiterOfInclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, String delimiterOfInclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, int inclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, int inclusiveBeginIndex, char delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, int inclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      funcOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, char delimiterOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, String delimiterOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringOrElseItself

      @Beta public static String substringOrElseItself(String str, IntUnaryOperator funcOfInclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      funcOfInclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringAfter

      @Beta public static u.Optional<String> substringAfter(String str, char delimiterOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfter

      @Beta public static u.Optional<String> substringAfter(String str, String delimiterOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfter

      @Beta public static u.Optional<String> substringAfter(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringAfterLast

      @Beta public static u.Optional<String> substringAfterLast(String str, char delimiterOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterLast

      @Beta public static u.Optional<String> substringAfterLast(String str, String delimiterOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterLast

      @Beta public static u.Optional<String> substringAfterLast(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringAfterAny

      @Beta public static u.Optional<String> substringAfterAny(String str, char... delimitersOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimitersOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterAny

      @Beta public static u.Optional<String> substringAfterAny(String str, String... delimitersOfExclusiveBeginIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimitersOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringBefore

      @Beta public static u.Optional<String> substringBefore(String str, char delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBefore

      @Beta public static u.Optional<String> substringBefore(String str, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBefore

      @Beta public static u.Optional<String> substringBefore(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLast

      @Beta public static u.Optional<String> substringBeforeLast(String str, char delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLast

      @Beta public static u.Optional<String> substringBeforeLast(String str, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLast

      @Beta public static u.Optional<String> substringBeforeLast(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeAny

      @Beta public static u.Optional<String> substringBeforeAny(String str, char... delimitersOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimitersOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeAny

      @Beta public static u.Optional<String> substringBeforeAny(String str, String... delimitersOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimitersOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringAfterOrElse

      @Beta public static String substringAfterOrElse(String str, String delimiterOfExclusiveBeginIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      defaultStr -
      Returns:
      See Also:
    • substringAfterLastOrElse

      @Beta public static String substringAfterLastOrElse(String str, String delimiterOfExclusiveBeginIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      defaultStr -
      Returns:
      See Also:
    • substringBeforeOrElse

      @Beta public static String substringBeforeOrElse(String str, String delimiterOfExclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringBeforeLastOrElse

      @Beta public static String substringBeforeLastOrElse(String str, String delimiterOfExclusiveEndIndex, String defaultStr)
      Returns the substring if it exists, otherwise returns defaultStr.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      defaultStr -
      Returns:
      See Also:
    • substringAfterOrElseItself

      @Beta public static String substringAfterOrElseItself(String str, char delimiterOfExclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterOrElseItself

      @Beta public static String substringAfterOrElseItself(String str, String delimiterOfExclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterOrElseItself

      @Beta public static String substringAfterOrElseItself(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringAfterLastOrElseItself

      @Beta public static String substringAfterLastOrElseItself(String str, char delimiterOfExclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterLastOrElseItself

      @Beta public static String substringAfterLastOrElseItself(String str, String delimiterOfExclusiveBeginIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      Returns:
      See Also:
    • substringAfterLastOrElseItself

      @Beta public static String substringAfterLastOrElseItself(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeOrElseItself

      @Beta public static String substringBeforeOrElseItself(String str, char delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeOrElseItself

      @Beta public static String substringBeforeOrElseItself(String str, String delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeOrElseItself

      @Beta public static String substringBeforeOrElseItself(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      inclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLastOrElseItself

      @Beta public static String substringBeforeLastOrElseItself(String str, char delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLastOrElseItself

      @Beta public static String substringBeforeLastOrElseItself(String str, String delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBeforeLastOrElseItself

      @Beta public static String substringBeforeLastOrElseItself(String str, int exclusiveEndIndex, String delimiterOfExclusiveEndIndex)
      Returns the substring if it exists, otherwise returns str itself.
      Parameters:
      str -
      exclusiveEndIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, int exclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      exclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, int exclusiveBeginIndex, char delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      exclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, int exclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      exclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, int exclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      exclusiveBeginIndex -
      funcOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, char delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, IntUnaryOperator funcOfExclusiveBeginIndex, int exclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      funcOfExclusiveBeginIndex -
      exclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, char delimiterOfExclusiveBeginIndex, char delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, String tag)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      tag -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, String delimiterOfExclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      delimiterOfExclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • substringBetween

      public static u.Optional<String> substringBetween(String str, int fromIndex, String delimiterOfExclusiveBeginIndex, String delimiterOfExclusiveEndIndex)
      Returns Optional<String> with value of the substring if it exists, otherwise returns an empty Optional<String>
      Parameters:
      str -
      fromIndex -
      delimiterOfExclusiveBeginIndex -
      delimiterOfExclusiveEndIndex -
      Returns:
      See Also:
    • createInteger

      @Beta public static u.OptionalInt createInteger(String str)
      Returns an empty OptionalInt if the specified string is blank or a invalid integer string. Otherwise returns OptionalInt with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createLong

      @Beta public static u.OptionalLong createLong(String str)
      Returns an empty OptionalLong if the specified string is blank or a invalid long string. Otherwise returns OptionalLong with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createFloat

      @Beta public static u.OptionalFloat createFloat(String str)
      Returns an empty OptionalFloat if the specified string is blank or a invalid float string. Otherwise returns OptionalFloat with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createDouble

      @Beta public static u.OptionalDouble createDouble(String str)
      Returns an empty OptionalDouble if the specified string is blank or a invalid double string. Otherwise returns OptionalDouble with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createBigInteger

      @Beta public static u.Optional<BigInteger> createBigInteger(String str)
      Returns an empty Optional<BigInteger> if the specified string is blank or a invalid BigInteger string. Otherwise returns Optional<BigInteger> with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createBigDecimal

      @Beta public static u.Optional<BigDecimal> createBigDecimal(String str)
      Returns an empty Optional<BigDecimal> if the specified string is blank or a invalid BigDecimal string. Otherwise returns Optional<BigDecimal> with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also:
    • createNumber

      @Beta public static u.Optional<Number> createNumber(String str)
      Returns an empty Optional<Number> if the specified string is blank or a invalid number string. Otherwise returns Optional<Number> with value converted from the specified String.
      Parameters:
      str -
      Returns:
      See Also: