UtilKt

public final class UtilKt

Functions

Link copied to clipboard
public final static Boolean isChristmas()

Check whether now is Christmas.

Link copied to clipboard
public final static List<String> splitIgnoreEmpty(CharSequence $self, Character delimiters)

Splits a string at the given delimiters and returns every substring, which is not empty.

Link copied to clipboard
public final static String trimParentheses(String $self)

Trim parentheses from the start and end of a string.

Link copied to clipboard
public final static FilterResult<TNew> withResult<TOld extends Any, TNew extends Any>(FilterResult<TOld> $self, TNew result)

If the current FilterResult is FilterResult.Match, change its result to the given one. Otherwise, return the original.