@Test void trim() { assertEquals(" A", StringUtils.trim(" A ", StringUtils.Trim.TRAILING)); assertEquals("A ", StringUtils.trim(" A ", StringUtils.Trim.LEADING)); assertEquals("A", StringUtils.trim(" A ", StringUtils.Trim.LEADING_AND_TRAILING)); }
public static String trim(String s, Trim trim) { return trim.substring(s, 0, s.length()); }
StringUtils { public static String trim(String s, Trim trim) { return trim.substring(s, 0, s.length()); } }
StringUtils { public static String trim(String s, Trim trim) { return trim.substring(s, 0, s.length()); }  }
StringUtils { public static String trim(String s, Trim trim) { return trim.substring(s, 0, s.length()); }  static String trim(String s, Trim trim); static String requireNonEmpty(String s); static String requireNonBlank(String s); static Optional<String> optionalOf(String s); static String cut(String s, int length, char delim, int index); static String cut(String s, int length, char delim, int index, Trim trim); static String[] split(String s, char delim); static String[] split(String s, int length, char delim); static String[] split(String s, int length, char delim, Trim trim); static String join(String[] ss, int off, int len, char delim); static String trimDS(String s); static String trimAndNullifyEmpty(String s); }
StringUtils { public static String trim(String s, Trim trim) { return trim.substring(s, 0, s.length()); }  static String trim(String s, Trim trim); static String requireNonEmpty(String s); static String requireNonBlank(String s); static Optional<String> optionalOf(String s); static String cut(String s, int length, char delim, int index); static String cut(String s, int length, char delim, int index, Trim trim); static String[] split(String s, char delim); static String[] split(String s, int length, char delim); static String[] split(String s, int length, char delim, Trim trim); static String join(String[] ss, int off, int len, char delim); static String trimDS(String s); static String trimAndNullifyEmpty(String s); static final String[] EMPTY_STRINGS; }