Util

open class Util

Utility methods.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun certificateToPEM(certificate: X509Certificate): String
Link copied to clipboard
open fun formatPercentage(value: Double, decimalPlaces: Int): String
open fun formatPercentage(locale: Locale, value: Double, decimalPlaces: Int): String
Link copied to clipboard
open fun gcd(items: Array<Int>): Int
open fun gcd(p: Int, q: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun loadClass(@NonNull name: String): Class<out Any>
Exception-safe version of Class.forName.
Link copied to clipboard
open fun repeat(c: Char, n: Int): String
open fun repeat(str: String, n: Int): String