Index

A C E F G H I M N O P Q R S T U 
All Classes and Interfaces|All Packages

A

ArrayHelper - Class in io.github.torand.javacommons.collection
Helper functions for arrays
asList(Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a list of specified iterable items.
asList(T...) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a list of specified item array.
asNonEmptyList(T, T...) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a list of at least one, possibly multiple items.

C

capitalize(String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Returns specified string with upper case first letter.
castTo(Class<T>) - Static method in class io.github.torand.javacommons.functional.Functions
Returns a function casting the input object to the specified class.
CollectionHelper - Class in io.github.torand.javacommons.collection
Helper functions for collections
concat(Iterable<T>, Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Concatenates the specified iterables into a single list.
concat(Iterable<T>, T...) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Concatenates the elements of the specified iterable and array into a single list.
concatStream(Iterable<T>, Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a concatenated stream from the elements in the specified iterables.
containsAny(Iterable<T>, Predicate<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Tests whether the specified iterable contains an element satisfying a predicate.
containsOneOf(Iterable<T>, T...) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Tests whether the specified iterable contains one of the specified items.

E

Exceptions - Class in io.github.torand.javacommons.lang
Provides factory methods to create exception objects with customized messages.

F

Functions - Class in io.github.torand.javacommons.functional
General purpose functions for streams.

G

generate(String, int) - Static method in class io.github.torand.javacommons.lang.StringHelper
Creates a string by concatenating a substring multiple times.
generate(String, int, String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Creates a string by concatenating a substring multiple times delimited by a delimiter substring.

H

headOf(Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns the first element of the specified iterable.

I

illegalArgumentException(String, Object...) - Static method in class io.github.torand.javacommons.lang.Exceptions
Creates a supplier of IllegalArgumentException with a customized message.
illegalStateException(String, Object...) - Static method in class io.github.torand.javacommons.lang.Exceptions
Creates a supplier of IllegalStateException with a customized message.
instanceOf(Class<? extends T>) - Static method in class io.github.torand.javacommons.functional.Predicates
Creates a predicate testing whether an object is an instance of a specified class.
io.github.torand.javacommons - package io.github.torand.javacommons
This is the root package of the Java Commons library.
io.github.torand.javacommons.collection - package io.github.torand.javacommons.collection
Provides classes for collection handling.
io.github.torand.javacommons.contract - package io.github.torand.javacommons.contract
Provides classes and interfaces for "Design by Contract" style coding.
io.github.torand.javacommons.functional - package io.github.torand.javacommons.functional
Provides classes and interfaces to extend and improve the functional aspects of Java.
io.github.torand.javacommons.lang - package io.github.torand.javacommons.lang
Provides classes to enhance basic language features.
isBlank(String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Tests whether the specified string is null or contains no characters.
isEmpty(int[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified 'int' array is null or contains no elements.
isEmpty(long[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified 'long' array is null or contains no elements.
isEmpty(Collection<?>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns whether the specified collection is null or contains no elements.
isEmpty(Map<?, ?>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns whether the specified map is null or contains no elements.
isEmpty(T[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified object array is null or contains no elements.

M

mapSafely(T, Function<T, U>) - Static method in class io.github.torand.javacommons.functional.Optionals
Executes the specified mapping function on the value if it is not null.

N

nonBlank(String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Tests whether the specified string is not null and contains at least one character.
nonEmpty(int[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified 'int' array contains at least one element.
nonEmpty(long[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified 'long' array contains at least one element.
nonEmpty(Collection<?>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns whether the specified collection contains at least one element.
nonEmpty(Map<?, ?>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns whether the specified map contains at least one element.
nonEmpty(T[]) - Static method in class io.github.torand.javacommons.collection.ArrayHelper
Returns whether the specified object array contains at least one element.

O

Optionals - Class in io.github.torand.javacommons.functional
General purpose utilities for optionals.

P

precondition(Requirement, String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified requirement is fulfilled.
Predicates - Class in io.github.torand.javacommons.functional
General purpose predicates for streams.

Q

quote(String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Returns the specified string enclosed by double quotes.
quoteAll(List<String>) - Static method in class io.github.torand.javacommons.lang.StringHelper
Returns specified list with all strings quoted.
quoteIfString(Object) - Static method in class io.github.torand.javacommons.lang.StringHelper
If the specified object is a string, returns it enclosed by double quotes.

R

require(Requirement, String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified requirement is fulfilled.
Requirement - Interface in io.github.torand.javacommons.contract
Defines a requirement to be fulfilled in a Requires statement.
requireNonBlank(String, String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified string is not null and contains at least one character.
requireNonEmpty(int[], String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified 'int' array is not null and contains at least one element.
requireNonEmpty(long[], String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified 'long' array is not null and contains at least one element.
requireNonEmpty(Optional<T>, String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified optional object is not null and is not empty.
requireNonEmpty(T[], String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified object array is not null and contains at least one element.
requireNonEmpty(T, String, Object...) - Static method in class io.github.torand.javacommons.contract.Requires
Checks that the specified object collection is not null and contains at least one element.
Requires - Class in io.github.torand.javacommons.contract
Provides factory methods to test the state of variables.
runtimeException(String, Object...) - Static method in class io.github.torand.javacommons.lang.Exceptions
Creates a supplier of RuntimeException with a customized message.

S

streamSafely(Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a stream from the elements in the specified iterable.
streamSafely(Iterator<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a stream from the elements in the specified iterator.
streamSafely(T...) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Creates a stream from the elements in the specified array.
StringHelper - Class in io.github.torand.javacommons.lang
Provides general purpose string utilities.
stripHead(String, int) - Static method in class io.github.torand.javacommons.lang.StringHelper
Removes a specific number of leading characters from a string.
stripTail(String, int) - Static method in class io.github.torand.javacommons.lang.StringHelper
Removes a specific number of trailing characters from a string.

T

tailOf(Iterable<T>) - Static method in class io.github.torand.javacommons.collection.CollectionHelper
Returns the last element of the specified iterable.
test() - Method in interface io.github.torand.javacommons.contract.Requirement
Tests the requirement.

U

uncapitalize(String) - Static method in class io.github.torand.javacommons.lang.StringHelper
Returns specified string with lower case first letter.
A C E F G H I M N O P Q R S T U 
All Classes and Interfaces|All Packages