Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- calculateDiffieHellmanEncryptionKey(BigInteger, BigInteger, BigInteger) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Performs the calculation for the Diffie-Hellmann-Merkle key exchange procedure.
- calculateDiffieHellmanPublicValue(BigInteger, BigInteger, BigInteger) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Calculates the value that will be transmitted to the other party on the exchange of an encryption key using the Diffie-Hellman-Merkle key exchange scheme.
- calculateMD5CheckSum(File) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Calculates a checksum for the given file, based on the MD5 algorithm.
- calculateMD5Hash(byte[]) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates a MD5 hash from the given byte sequence.
This method is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateMD5Hash(CharSequence) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates a MD5 hash from the given string.
The output string will contain the digits from0xA
to0xF
all as lower case.
Use this method to create the values for password fields; it is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateSHA1Hash(byte[]) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates an SHA-1 hash from the given byte sequence.
This method is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateSHA1Hash(CharSequence) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates an SHA-1 hash from the given string.
The output string will contain the digits from0xA
to0xF
all as lower case.
Use this method to create the values for password fields; it is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateSHA256CheckSum(File) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Calculates a checksum for the given file, based on the SHA-256 algorithm.
- calculateSHA256Hash(byte[]) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates an SHA-256 hash from the given byte sequence.
This method is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateSHA256Hash(CharSequence) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Creates an SHA-256 hash from the given string.
The output string will contain the digits from0xA
to0xF
all as lower case.
Use this method to create the values for password fields; it is not very efficient for calculating the hash value for (large) files as it would require to load the whole file into memory. - calculateSHACheckSum(File) - Static method in class org.tquadrat.foundation.util.SecurityUtils
-
Calculates a checksum for the given file, based on the SHA-1 algorithm.
- capitalize(CharSequence) - Static method in class org.tquadrat.foundation.util.StringUtils
-
Capitalises a String, meaning changing the first letter to upper case as per
Character.toUpperCase(char)
. - capitalizeToTitle(CharSequence) - Static method in class org.tquadrat.foundation.util.StringUtils
-
Capitalises a String, meaning changing the first letter to upper case as per
Character.toTitleCase(char)
. - caseInsensitiveComparator() - Static method in class org.tquadrat.foundation.util.Comparators
-
Returns a comparator that compares Strings ignoring the case.
Internally this isString.CASE_INSENSITIVE_ORDER
, with the limitations described there. - CharacterStringConverter - Class in org.tquadrat.foundation.util.stringconverter
-
An implementation of
StringConverter
forCharacter
values.
CallingCharacterStringConverter.fromString(CharSequence)
with an empty String will cause anIllegalArgumentException
. - CharacterStringConverter() - Constructor for class org.tquadrat.foundation.util.stringconverter.CharacterStringConverter
-
Creates a new instance of
CharacterStringConverter
. - CharSequenceStringConverter - Class in org.tquadrat.foundation.util.stringconverter
-
The implementation of
StringConverter
forCharSequence
values. - CharSequenceStringConverter() - Constructor for class org.tquadrat.foundation.util.stringconverter.CharSequenceStringConverter
-
Creates a new instance of
CharSequenceStringConverter
. - CharsetStringConverter - Class in org.tquadrat.foundation.util.stringconverter
-
An implementation of
StringConverter
forCharset
values.
The methodCharsetStringConverter.fromString(CharSequence)
will useCharset.forName(String)
to obtain an instance ofCharset
based on the given value. - CharsetStringConverter() - Constructor for class org.tquadrat.foundation.util.stringconverter.CharsetStringConverter
-
Creates a new instance of
CharsetStringConverter
. - CharSetUtils - Class in org.tquadrat.foundation.util
-
This class provides several utilities dealing with Strings in different character sets/encodings.
- CharSetUtils() - Constructor for class org.tquadrat.foundation.util.CharSetUtils
-
No instance allowed for this class!
- checkTextLen(String, CharSequence, int) - Static method in class org.tquadrat.foundation.util.StringUtils
-
Tests if the given text is not
null
, not empty and not longer than the given maximum length. - checkTextLenNull(String, CharSequence, int) - Static method in class org.tquadrat.foundation.util.StringUtils
-
Tests if the given text is not longer than the given maximum length; different from
StringUtils.checkTextLen(String, CharSequence, int)
, it may benull
or empty. - checkValid(byte[]) - Method in class org.tquadrat.foundation.util.Base32.Decoder
-
Checks whether the given argument is a valid Basic 32 sequence and converts it into an array with the symbol values.
- ClassStringConverter - Class in org.tquadrat.foundation.util.stringconverter
-
An implementation of
StringConverter
forClass
values.
The methodClassStringConverter.fromString(CharSequence)
will useClass.forName(String, boolean, ClassLoader)
to load the class with the given name. - ClassStringConverter() - Constructor for class org.tquadrat.foundation.util.stringconverter.ClassStringConverter
-
Creates a new instance of
ClassStringConverter
. - clear() - Method in class org.tquadrat.foundation.util.internal.FinalRangeMap
-
This method will always throw an
UnsupportedOperationException
. - clear() - Method in class org.tquadrat.foundation.util.internal.LazyListImpl
- clear() - Method in class org.tquadrat.foundation.util.internal.LazyMapImpl
- clear() - Method in class org.tquadrat.foundation.util.internal.LazySetImpl
- clear() - Method in class org.tquadrat.foundation.util.internal.RangeMapImpl
-
Clears the range map.
- clear() - Method in interface org.tquadrat.foundation.util.RangeMap
-
Clears the range map.
- clear() - Method in class org.tquadrat.foundation.util.Stack
-
Empties the whole stack in one go.
- clip(CharSequence, int) - Method in enum class org.tquadrat.foundation.util.StringUtils.Clipping
-
Clips the given input String.
- Clipping() - Constructor for enum class org.tquadrat.foundation.util.StringUtils.Clipping
- CLIPPING_ABBREVIATE - Enum constant in enum class org.tquadrat.foundation.util.StringUtils.Clipping
-
If an input String is longer than the target length, it will be abbreviated to that length, by calling
StringUtils.abbreviate(CharSequence, int)
with that String. - CLIPPING_ABBREVIATE_MIDDLE - Enum constant in enum class org.tquadrat.foundation.util.StringUtils.Clipping
-
If an input String is longer than the target length, it will be abbreviated to that length, by calling
StringUtils.abbreviateMiddle(CharSequence, int)
with that String. - CLIPPING_CUT - Enum constant in enum class org.tquadrat.foundation.util.StringUtils.Clipping
-
If an input String is longer than the target length, it will be just shortened to that length.
- CLIPPING_NONE - Enum constant in enum class org.tquadrat.foundation.util.StringUtils.Clipping
-
If an input String is already longer than the target length, it will be returned unchanged.
- clone() - Method in interface org.tquadrat.foundation.util.Hash
-
Creates and returns a copy of this object.
- clone() - Method in class org.tquadrat.foundation.util.internal.HashImpl
-
Creates and returns a copy of this object.
- close() - Method in class org.tquadrat.foundation.util.internal.AutoSemaphoreImpl.Token
- close() - Method in class org.tquadrat.foundation.util.internal.TimeoutSemaphoreImpl.Token
- closeQuietly(AutoCloseable) - Static method in class org.tquadrat.foundation.util.IOUtils
-
Unconditionally closes an object instance of a class that implements the interface
AutoCloseable
.
Equivalent toAutoCloseable.close()
, except any exceptions will be ignored. - COMMENTREMOVAL_PATTERN - Static variable in class org.tquadrat.foundation.util.StringUtils
-
The regular expression for an HTML or XML comment: "<!--.+?-->".
- comparator() - Method in class org.tquadrat.foundation.util.internal.LazySortedMapImpl
-
A call to this method initialises the lazy map. - Comparators - Class in org.tquadrat.foundation.util
-
This class provides factory methods for a bunch of different implementations of
Comparator
. - Comparators() - Constructor for class org.tquadrat.foundation.util.Comparators
-
No instance allowed for this class.
- Comparators.KeyProvider<T,
K> - Interface in org.tquadrat.foundation.util -
Implementations of this interface provides the sort order key from the given instance of the type.
- compare(T, T) - Method in class org.tquadrat.foundation.util.internal.KeyBasedComparator
- compare(T, T) - Method in class org.tquadrat.foundation.util.internal.ListBasedComparator
- compare(T, T) - Method in class org.tquadrat.foundation.util.internal.StringBasedComparator
- composeGetterName(String) - Static method in class org.tquadrat.foundation.util.JavaUtils
-
Creates the name for the getter method for the property with the given name.
- composeSetterName(String) - Static method in class org.tquadrat.foundation.util.JavaUtils
-
Creates the name for the setter method for the property with the given name.
- contains(Object) - Method in class org.tquadrat.foundation.util.internal.LazyListImpl
- contains(Object) - Method in class org.tquadrat.foundation.util.internal.LazySetImpl
- contains(T) - Method in interface org.tquadrat.foundation.util.HeadTailList
-
Checks whether the list contains an element that is equal to the given one.
- containsAll(Collection<?>) - Method in class org.tquadrat.foundation.util.internal.LazyListImpl
- containsAll(Collection<?>) - Method in class org.tquadrat.foundation.util.internal.LazySetImpl
- containsKey(Object) - Method in class org.tquadrat.foundation.util.internal.LazyMapImpl
- containsValue(Object) - Method in class org.tquadrat.foundation.util.internal.LazyMapImpl
- convertBytesToASCII(byte[]) - Static method in class org.tquadrat.foundation.util.CharSetUtils
-
Converts the given byte array into to a String that will only contain printable ASCII characters; all other characters will be 'escaped' to the format "
\uXXXX
". - convertEscapedStringToUnicode(CharSequence) - Static method in class org.tquadrat.foundation.util.CharSetUtils
-
Converts a String that contains only ASCII characters and Unicode escape sequences like "
\uXXXX
" to the equivalent Unicode String.
This method will not touch other escape sequences, like"\n"
or"\t"
. - convertFromHexCharArray(char[]) - Static method in class org.tquadrat.foundation.util.HexUtils
-
Converts an array of hexadecimal digits into the corresponding byte array by encoding each two hexadecimal digits as a byte.
- convertFromHexString(CharSequence) - Static method in class org.tquadrat.foundation.util.HexUtils
-
Converts a String of hexadecimal digits into the corresponding byte array by encoding each two hexadecimal digits as a byte.
- convertIPAddress(CharSequence) - Static method in class org.tquadrat.foundation.util.SystemUtils
-
Converts an IP address that is given as a string into an
InetAddress
object. - convertToHexDigit(int) - Static method in class org.tquadrat.foundation.util.HexUtils
-
Converts an integer in the range form 0 to 15 to a hex digit.
- convertUnicodeToASCII(CharSequence) - Static method in class org.tquadrat.foundation.util.CharSetUtils
-
Translates the given Unicode String without any normalisation to a String that will only contain printable ASCII characters; all other characters will be 'escaped' to the format "
\uXXXX
". - convertUnicodeToASCII(Normalizer.Form, CharSequence) - Static method in class org.tquadrat.foundation.util.CharSetUtils
-
Applies the given normalisation to the given Unicode String and translates it to a String that will only contain printable ASCII characters; all other characters will be 'escaped' to the format "
\uXXXX
". - copy() - Method in interface org.tquadrat.foundation.util.RangeMap
-
Returns a modifiable copy of this range map.
- copy(boolean) - Method in class org.tquadrat.foundation.util.internal.RangeMapImpl
-
Returns a copy of this range map.
- copy(boolean) - Method in interface org.tquadrat.foundation.util.RangeMap
-
Returns a copy of this range map.
- create(byte[], MessageDigest) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given byte array, using the given algorithm.
- create(byte[], MessageDigest) - Static method in class org.tquadrat.foundation.util.internal.HashImpl
-
Creates the hash for the given byte array, using the given algorithm.
- create(byte[], Checksum) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given byte array, using the given algorithm.
- create(byte[], Checksum) - Static method in class org.tquadrat.foundation.util.internal.HashImpl
-
Creates the hash for the given byte array, using the given algorithm.
- create(File, MessageDigest) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given file, using the given algorithm.
- create(File, Checksum) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given file, using the given algorithm.
- create(CharSequence, Charset, MessageDigest) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given String, using the given algorithm.
- create(CharSequence, Charset, Checksum) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given String, using the given algorithm.
- create(CharSequence, MessageDigest) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given String, using the given algorithm.
- create(CharSequence, Checksum) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given String, using the given algorithm.
- create(Path, MessageDigest) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given file, using the given algorithm.
- create(Path, MessageDigest) - Static method in class org.tquadrat.foundation.util.internal.HashImpl
-
Creates the hash for the given file, using the given algorithm.
- create(Path, Checksum) - Static method in interface org.tquadrat.foundation.util.Hash
-
Creates the hash for the given file, using the given algorithm.
- create(Path, Checksum) - Static method in class org.tquadrat.foundation.util.internal.HashImpl
-
Creates the hash for the given file, using the given algorithm.
- createAdditionalSource() - Static method in class org.tquadrat.foundation.util.Template
-
Builds the source map with the additional data.
- createDirectories(File, FileAttribute<?>...) - Static method in class org.tquadrat.foundation.util.IOUtils
-
Creates a new directory by creating all nonexistent parent directories first.
- createDirectory(File, FileAttribute<?>...) - Static method in class org.tquadrat.foundation.util.IOUtils
-
Creates a new directory.
- createPseudoNodeId() - Static method in class org.tquadrat.foundation.util.SystemUtils
-
Returns a pseudo node id; this is useful in cases a machine does not have a network card (NIC) so that a MAC address could not be obtained, or if the real node id should not be used.
- createTempDirectory() - Static method in class org.tquadrat.foundation.util.IOUtils
-
Creates a directory named after the account name of the current user (determined by the system property "user.name") in the default
temp
folder, determined by the system property "java.io.tmpdir". - createTempDirectory(File, String, FileAttribute<?>...) - Static method in class org.tquadrat.foundation.util.IOUtils
-
Creates a new temporary directory in the specified directory, using the given prefix to generate its name.
- createTempDirectory(String, FileAttribute<?>...) - Static method in class org.tquadrat.foundation.util.IOUtils
-
Creates a new directory in the default temporary-file directory, using the given prefix to generate its name.
- createToken(int) - Method in class org.tquadrat.foundation.util.internal.TimeoutSemaphoreImpl
-
Creates a token and adds to the registry.
- createZoneIdAliasMap() - Static method in class org.tquadrat.foundation.util.DateTimeUtils
-
Creates the alias map for the old (deprecated) zone ids that are used for the call to
ZoneId.of(String, java.util.Map)
to retrieve aZoneId
instance for the given zone id. - createZoneIdAliasMap() - Static method in class org.tquadrat.foundation.util.SystemUtils
-
Deprecated, for removal: This API element is subject to removal in a future version.
- CurrencyStringConverter - Class in org.tquadrat.foundation.util.stringconverter
-
An implementation of
StringConverter
forCurrency
values. - CurrencyStringConverter() - Constructor for class org.tquadrat.foundation.util.stringconverter.CurrencyStringConverter
-
Creates a new instance of
CurrencyStringConverter
. - currentTimeNanos() - Static method in class org.tquadrat.foundation.util.SystemUtils
-
Returns the current time as nanoseconds since the beginning of the Gregorian calendar (1582-10-15T00:00).
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
DateTimeUtils.createZoneIdAliasMap()
instead.