- capitalize(String) - Static method in class com.okta.commons.lang.Strings
-
- caseInsensitiveValueOf(E[], String) - Static method in class com.okta.commons.lang.Objects
-
- Classes - Class in com.okta.commons.lang
-
- Classes() - Constructor for class com.okta.commons.lang.Classes
-
- clean(String) - Static method in class com.okta.commons.lang.Strings
-
Returns a 'cleaned' representation of the specified argument.
- cleanPath(String) - Static method in class com.okta.commons.lang.Strings
-
Normalize the path by suppressing sequences like "path/.." and
inner simple dots.
- Collections - Class in com.okta.commons.lang
-
- Collections() - Constructor for class com.okta.commons.lang.Collections
-
- collectionToCommaDelimitedString(Collection<?>) - Static method in class com.okta.commons.lang.Strings
-
Convert a Collection into a delimited String (e.g., CSV).
- collectionToDelimitedString(Collection<?>, String, String, String) - Static method in class com.okta.commons.lang.Strings
-
- collectionToDelimitedString(Collection<?>, String) - Static method in class com.okta.commons.lang.Strings
-
Convert a Collection into a delimited String (e.g.
- com.okta.commons.lang - package com.okta.commons.lang
-
- commaDelimitedListToSet(String) - Static method in class com.okta.commons.lang.Strings
-
Convert a comma delimited list (e.g., a row from a CSV file) into a set.
- commaDelimitedListToStringArray(String) - Static method in class com.okta.commons.lang.Strings
-
Convert a comma delimited list (e.g., a row from a CSV file) into an
array of strings.
- concatenateStringArrays(String[], String[]) - Static method in class com.okta.commons.lang.Strings
-
Concatenate the given String arrays into one,
with overlapping array elements included twice.
- contains(Iterator, Object) - Static method in class com.okta.commons.lang.Collections
-
Check whether the given Iterator contains the given element.
- contains(Enumeration, Object) - Static method in class com.okta.commons.lang.Collections
-
Check whether the given Enumeration contains the given element.
- containsAny(Collection, Collection) - Static method in class com.okta.commons.lang.Collections
-
Return true if any element in 'candidates' is
contained in 'source'; otherwise returns false.
- containsConstant(Enum<?>[], String) - Static method in class com.okta.commons.lang.Objects
-
Check whether the given array of enum constants contains a constant with the given name,
ignoring case when determining a match.
- containsConstant(Enum<?>[], String, boolean) - Static method in class com.okta.commons.lang.Objects
-
Check whether the given array of enum constants contains a constant with the given name.
- containsElement(Object[], Object) - Static method in class com.okta.commons.lang.Objects
-
Check whether the given array contains the given element.
- containsInstance(Collection, Object) - Static method in class com.okta.commons.lang.Collections
-
Check whether the given Collection contains the given element instance.
- containsWhitespace(CharSequence) - Static method in class com.okta.commons.lang.Strings
-
Check whether the given CharSequence contains any whitespace characters.
- containsWhitespace(String) - Static method in class com.okta.commons.lang.Strings
-
Check whether the given String contains any whitespace characters.
- convertDate(long, TimeZone, TimeZone) - Static method in class com.okta.commons.lang.Instants
-
Converts a given time from a
TimeZone to another
- convertDateToLocalTime(long, TimeZone) - Static method in class com.okta.commons.lang.Instants
-
Converts a given time from UTC (Coordinated Universal Time) to the corresponding time in the specified
TimeZone
- convertDateToUTC(long, TimeZone) - Static method in class com.okta.commons.lang.Instants
-
Converts a given time from the specified
TimeZone to the corresponding UTC (Coordinated Universal Time) time
- countOccurrencesOf(String, String) - Static method in class com.okta.commons.lang.Strings
-
Count the occurrences of the substring sub in string str.
- identityToString(Object) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of an object's overall identity.
- instantiate(Constructor<T>, Object...) - Static method in class com.okta.commons.lang.Classes
-
- InstantiationException - Exception in com.okta.commons.lang
-
- InstantiationException(String, Throwable) - Constructor for exception com.okta.commons.lang.InstantiationException
-
- Instants - Class in com.okta.commons.lang
-
Utility class to create UTC-based dates and perform time conversions from UTC to other
timezones and vice versa
- Instants() - Constructor for class com.okta.commons.lang.Instants
-
- isArray(Object) - Static method in class com.okta.commons.lang.Objects
-
Determine whether the given object is an array:
either an Object array or a primitive array.
- isAssignable(Class, Class) - Static method in class com.okta.commons.lang.Assert
-
Assert that superType.isAssignableFrom(subType) is true.
- isAssignable(Class, Class, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that superType.isAssignableFrom(subType) is true.
- isAvailable(String) - Static method in class com.okta.commons.lang.Classes
-
- isCheckedException(Throwable) - Static method in class com.okta.commons.lang.Objects
-
Return whether the given throwable is a checked exception:
that is, neither a RuntimeException nor an Error.
- isCompatibleWithThrowsClause(Throwable, Class<?>...) - Static method in class com.okta.commons.lang.Objects
-
Check whether the given exception is compatible with the specified
exception types, as declared in a throws clause.
- isEmpty(Collection) - Static method in class com.okta.commons.lang.Collections
-
Return true if the supplied Collection is null
or empty.
- isEmpty(Map) - Static method in class com.okta.commons.lang.Collections
-
Return true if the supplied Map is null
or empty.
- isEmpty(Object[]) - Static method in class com.okta.commons.lang.Objects
-
Determine whether the given array is empty:
i.e.
- isEmpty(Object) - Static method in class com.okta.commons.lang.Objects
-
Determine whether the given object is empty.
- isEmpty(Object) - Static method in class com.okta.commons.lang.Strings
-
Check whether the given String is empty.
- isInstanceOf(Class, Object) - Static method in class com.okta.commons.lang.Assert
-
Assert that the provided object is an instance of the provided class.
- isInstanceOf(Class, Object, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that the provided object is an instance of the provided class.
- isNull(Object, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that an object is null .
- isNull(Object) - Static method in class com.okta.commons.lang.Assert
-
Assert that an object is null .
- isTrue(boolean, String) - Static method in class com.okta.commons.lang.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false.
- isTrue(boolean) - Static method in class com.okta.commons.lang.Assert
-
Assert a boolean expression, throwing IllegalArgumentException
if the test result is false.
- newInstance(String) - Static method in class com.okta.commons.lang.Classes
-
- newInstance(String, Object...) - Static method in class com.okta.commons.lang.Classes
-
- newInstance(Class<T>) - Static method in class com.okta.commons.lang.Classes
-
- newInstance(Class<T>, Object...) - Static method in class com.okta.commons.lang.Classes
-
- noNullElements(Object[], String) - Static method in class com.okta.commons.lang.Assert
-
Assert that an array has no null elements.
- noNullElements(Object[]) - Static method in class com.okta.commons.lang.Assert
-
Assert that an array has no null elements.
- notEmpty(Object[], String) - Static method in class com.okta.commons.lang.Assert
-
Assert that an array has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Object[]) - Static method in class com.okta.commons.lang.Assert
-
Assert that an array has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Collection, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Collection) - Static method in class com.okta.commons.lang.Assert
-
Assert that a collection has elements; that is, it must not be
null and must have at least one element.
- notEmpty(Map, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notEmpty(Map) - Static method in class com.okta.commons.lang.Assert
-
Assert that a Map has entries; that is, it must not be null
and must have at least one entry.
- notNull(Object, String) - Static method in class com.okta.commons.lang.Assert
-
Assert that an object is not null .
- notNull(Object) - Static method in class com.okta.commons.lang.Assert
-
Assert that an object is not null .
- nullSafeClassName(Object) - Static method in class com.okta.commons.lang.Objects
-
Determine the class name for the given object.
- nullSafeEquals(Object, Object) - Static method in class com.okta.commons.lang.Objects
-
Determine if the given objects are equal, returning true if
both are null or false if only one is null.
- nullSafeHashCode(Object) - Static method in class com.okta.commons.lang.Objects
-
Return as hash code for the given object; typically the value of
Object#hashCode()}.
- nullSafeHashCode(Object[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(boolean[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(byte[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(char[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(double[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(float[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(int[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(long[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeHashCode(short[]) - Static method in class com.okta.commons.lang.Objects
-
Return a hash code based on the contents of the specified array.
- nullSafeToString(Object) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the specified Object.
- nullSafeToString(Object[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(boolean[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(byte[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(char[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(double[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(float[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(int[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(long[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- nullSafeToString(short[]) - Static method in class com.okta.commons.lang.Objects
-
Return a String representation of the contents of the specified array.
- toArray(Enumeration<E>, A[]) - Static method in class com.okta.commons.lang.Collections
-
Marshal the elements from the given enumeration into an array of the given type.
- toArray(Collection<T>, Class<T>) - Static method in class com.okta.commons.lang.Collections
-
- toIterator(Enumeration<E>) - Static method in class com.okta.commons.lang.Collections
-
Adapt an enumeration to an iterator.
- tokenizeToStringArray(String, String) - Static method in class com.okta.commons.lang.Strings
-
- tokenizeToStringArray(String, String, boolean, boolean) - Static method in class com.okta.commons.lang.Strings
-
- toLanguageTag(Locale) - Static method in class com.okta.commons.lang.Strings
-
Determine the RFC 3066 compliant language tag,
as used for the HTTP "Accept-Language" header.
- toList(T...) - Static method in class com.okta.commons.lang.Collections
-
a new List that contains the specified elements or an empty collection if the elements are null or empty.
- toList(Collection<T>) - Static method in class com.okta.commons.lang.Collections
-
a new List that contains the specified elements or an empty collection if the elements are null or empty.
- toLocale(String) - Static method in class com.okta.commons.lang.Locales
-
Converts a String to a Locale.
- toObjectArray(Object) - Static method in class com.okta.commons.lang.Objects
-
Convert the given array (which may be a primitive array) to an
object array (if necessary of primitive wrapper objects).
- toSet(E...) - Static method in class com.okta.commons.lang.Collections
-
Returns a new
Set that contains the specified elements or an empty Set if the elements are null or empty.
- toStringArray(Collection<String>) - Static method in class com.okta.commons.lang.Strings
-
Copy the given Collection into a String array.
- toStringArray(Enumeration<String>) - Static method in class com.okta.commons.lang.Strings
-
Copy the given Enumeration into a String array.
- toUtcIso8601(Date) - Static method in class com.okta.commons.lang.Instants
-
Returns the UTC-normalized ISO 8601 representation of the specified date instance.
- trimAllWhitespace(String) - Static method in class com.okta.commons.lang.Strings
-
Trim all whitespace from the given String:
leading, trailing, and in between characters.
- trimArrayElements(String[]) - Static method in class com.okta.commons.lang.Strings
-
Trim the elements of the given String array,
calling String.trim() on each of them.
- trimLeadingCharacter(String, char) - Static method in class com.okta.commons.lang.Strings
-
Trim all occurrences of the supplied leading character from the given String.
- trimLeadingWhitespace(String) - Static method in class com.okta.commons.lang.Strings
-
Trim leading whitespace from the given String.
- trimTrailingCharacter(String, char) - Static method in class com.okta.commons.lang.Strings
-
Trim all occurrences of the supplied trailing character from the given String.
- trimTrailingWhitespace(String) - Static method in class com.okta.commons.lang.Strings
-
Trim trailing whitespace from the given String.
- trimWhitespace(String) - Static method in class com.okta.commons.lang.Strings
-
Trim leading and trailing whitespace from the given String.