PrivMX DOCS
API Reference/PrivMX Endpoint Java/Core

Utils

Constructors

Utils

public void Utils()

Static Methods

ltrim

Removes all whitespace from the left of given string.

Params

data

String

reference to string

public static String ltrim(
String data
)

Returns

String · copy of string without whitespace at the beginning

rtrim

Removes all whitespace from the right of given string.

Params

data

String

reference to string

public static String rtrim(
String data
)

Returns

String · copy of string without whitespace at the end

split

Splits a string using the provided delimiter.

Params

data

String

the string to be split

delimiter

String

string which will be split

public static List<String> split(
String data,
String delimiter
)

Returns

List<String> · split parts

trim

Removes all trailing whitespace.

Params

data

String

string to trim

public static String trim(
String data
)

Returns

String · copy of string with removed trailing whitespace

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.

PrivMX Endpoint Java v2.5

This package is not up to date with the core documentation. Some of the features you've seen described in other parts of the documentation might not be mentioned here. Those changes do not influence compatibility, however