Index

C D E F G H I L M R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form

C

cause - Variable in class de.gustavblass.commons.Result
The reason why the operation failed, if any.
censor() - Method in class de.gustavblass.commons.UnicodeString
Replaces all characters in the UnicodeString.string with asterisks.
charAt(int) - Method in class de.gustavblass.commons.UnicodeString
 
chars() - Method in class de.gustavblass.commons.UnicodeString
 
codePoints() - Method in class de.gustavblass.commons.UnicodeString
 
copy() - Method in interface de.gustavblass.commons.Copyable
 
copy() - Method in class de.gustavblass.commons.Result
 
Copyable<T> - Interface in de.gustavblass.commons
Interface for objects that can be copied.
creationTime - Variable in class de.gustavblass.commons.Expiring
The absolute point in time at which the value was created.

D

de.gustavblass.commons - package de.gustavblass.commons
 
disableDoNotTrack() - Method in class de.gustavblass.commons.FileDownloader
Disables that the FileDownloader.doNotTrack header is sent with any HTTP requests.
disableGlobalPrivacyControl() - Method in class de.gustavblass.commons.FileDownloader
Disables that the FileDownloader.globalPrivacyControl header is sent with any HTTP requests.
doNotTrack - Variable in class de.gustavblass.commons.FileDownloader
Whether to send the Do-Not-Track header with HTTP requests.
download(URL, File) - Method in class de.gustavblass.commons.FileDownloader
Retrieves a file of arbitrary format from the server available at the given web address to the specified destination.

E

enableDoNotTrack() - Method in class de.gustavblass.commons.FileDownloader
Enables that the FileDownloader.doNotTrack header is sent with any HTTP requests.
enableGlobalPrivacyControl() - Method in class de.gustavblass.commons.FileDownloader
Enables that the FileDownloader.globalPrivacyControl header is sent with any HTTP requests.
encode() - Method in class de.gustavblass.commons.URLParameters
Encodes the URL parameters such that they can be used in a URL or in a POST request.
expirationDuration - Variable in class de.gustavblass.commons.Expiring
The relative duration after which the value is considered expired, counting from the Expiring.creationTime.
expirationTime - Variable in class de.gustavblass.commons.Expiring
The absolute point in time after which the value is considered expired.
Expiring<Type> - Class in de.gustavblass.commons
A class that holds a value that will expire after a certain point in time or after a certain duration.
Expiring(Type, Duration) - Constructor for class de.gustavblass.commons.Expiring
Creates a new expiring object with the given value and expiration duration.
Expiring(Type, LocalDateTime) - Constructor for class de.gustavblass.commons.Expiring
Creates a new expiring object with the given value and expiration time.
Expiring(Type, LocalDateTime, Duration) - Constructor for class de.gustavblass.commons.Expiring
Creates a new expiring object with the given value, Expiring.creationTime and expiration duration.
extendBy(Duration) - Method in class de.gustavblass.commons.Expiring
Extends both the absolute Expiring.expirationTime and the relative Expiring.expirationDuration by the given duration, even if the value has already expired.
extendIfExpired(Duration) - Method in class de.gustavblass.commons.Expiring
Extends the Expiring.expirationTime and the Expiring.expirationDuration by the given duration, only if the value has already expired.
extendIfNotExpired(Duration) - Method in class de.gustavblass.commons.Expiring
Extends the Expiring.expirationTime and the Expiring.expirationDuration by the given duration, only if the value has not expired.

F

FALSE - Enum constant in enum class de.gustavblass.commons.FuzzyBoolean
The boolean value is definitely false.
FileDownloader - Class in de.gustavblass.commons
A utility class that downloads files from the internet.
FileDownloader() - Constructor for class de.gustavblass.commons.FileDownloader
 
FuzzyBoolean - Enum Class in de.gustavblass.commons
Used if a boolean might be neither fully true nor fully false.
FuzzyBoolean(String) - Constructor for enum class de.gustavblass.commons.FuzzyBoolean
 

G

get() - Method in class de.gustavblass.commons.Expiring
Returns the Expiring.value if it has not expired yet, otherwise an empty Optional.
getCause() - Method in class de.gustavblass.commons.Result
 
getEvenIfExpired() - Method in class de.gustavblass.commons.Expiring
 
getResult() - Method in class de.gustavblass.commons.Result
 
getSuccess() - Method in class de.gustavblass.commons.Result
 
getUserAgent() - Method in class de.gustavblass.commons.FileDownloader
Retrieves the custom FileDownloader.userAgent string to be sent with HTTP requests.
globalPrivacyControl - Variable in class de.gustavblass.commons.FileDownloader
Whether to send the Global-Privacy-Control header with HTTP requests.

H

hasExpired() - Method in class de.gustavblass.commons.Expiring
Determines whether the Expiring.value has expired, which is the case if

I

isEmpty() - Method in class de.gustavblass.commons.UnicodeString
 

L

length() - Method in class de.gustavblass.commons.UnicodeString
Counts the number of characters in the UnicodeString.string, but treats each emoji as only one character.
LOG - Static variable in class de.gustavblass.commons.FileDownloader
 
LOG - Static variable in class de.gustavblass.commons.UnicodeString
 

M

MAYBE - Enum constant in enum class de.gustavblass.commons.FuzzyBoolean
It is unclear whether the boolean value is true or false.

R

readFile(File) - Static method in class de.gustavblass.commons.FileDownloader
Extracts the content of the given local file.
resetUserAgent() - Method in class de.gustavblass.commons.FileDownloader
Deletes the custom FileDownloader.userAgent string previously set.
result - Variable in class de.gustavblass.commons.Result
The detailed outcome of the operation.
Result<Type> - Class in de.gustavblass.commons
Represents the outcome of an operation that is either successful or unsuccessful and may return an elaborate result.
Result(boolean) - Constructor for class de.gustavblass.commons.Result
Creates a new result object with no elaborate return value.
Result(boolean, Throwable) - Constructor for class de.gustavblass.commons.Result
Creates a new result object with a cause of failure.
Result(boolean, Type) - Constructor for class de.gustavblass.commons.Result
Creates a new result object.
Result(boolean, Type, Throwable) - Constructor for class de.gustavblass.commons.Result
Creates a new result object with a cause of failure.

S

setUserAgent(String) - Method in class de.gustavblass.commons.FileDownloader
Updates the FileDownloader.userAgent string to be sent with HTTP requests.
strikeThrough() - Method in class de.gustavblass.commons.UnicodeString
Converts the given input string to a struck-through version of itself.
string - Variable in class de.gustavblass.commons.UnicodeString
The actual text represented by this UnicodeString
subSequence(int, int) - Method in class de.gustavblass.commons.UnicodeString
 
success - Variable in class de.gustavblass.commons.Result
Whether the operation was successful.

T

toString() - Method in class de.gustavblass.commons.UnicodeString
 
TRUE - Enum constant in enum class de.gustavblass.commons.FuzzyBoolean
The boolean value is definitely true.

U

UnicodeString - Class in de.gustavblass.commons
Represents a Unicode string which can be manipulated by censoring and UnicodeString.strikeThrough().
UnicodeString(char[]) - Constructor for class de.gustavblass.commons.UnicodeString
Creates a new UnicodeString from the given char array.
UnicodeString(String) - Constructor for class de.gustavblass.commons.UnicodeString
Creates a new UnicodeString from the given String.
update(Type) - Method in class de.gustavblass.commons.Expiring
updateExpirationTime(LocalDateTime) - Method in class de.gustavblass.commons.Expiring
Updates the absolute Expiring.expirationTime to the given time and recalculates the relative Expiring.expirationDuration.
updateExpirationTimeIfExpired(LocalDateTime) - Method in class de.gustavblass.commons.Expiring
Updates the relative Expiring.expirationDuration to the given duration and recalculates the absolute Expiring.expirationTime, only if the value has already expired.
updateExpirationTimeIfNotExpired(LocalDateTime) - Method in class de.gustavblass.commons.Expiring
Updates the absolute Expiring.expirationTime to the given time and recalculates the relative Expiring.expirationDuration,
updateIfExpired(Type) - Method in class de.gustavblass.commons.Expiring
Updates the Expiring.value only if it has already expired.
updateIfNotExpired(Type) - Method in class de.gustavblass.commons.Expiring
Updates the Expiring.value only if it has not yet expired.
URLParameters - Class in de.gustavblass.commons
Represents URL parameters as a LinkedHashMap with the keys as the parameter names and the values as the parameter values.
URLParameters() - Constructor for class de.gustavblass.commons.URLParameters
URLParameters(int) - Constructor for class de.gustavblass.commons.URLParameters
URLParameters(int, float) - Constructor for class de.gustavblass.commons.URLParameters
URLParameters(int, float, boolean) - Constructor for class de.gustavblass.commons.URLParameters
URLParameters(Map<String, String>) - Constructor for class de.gustavblass.commons.URLParameters
userAgent - Variable in class de.gustavblass.commons.FileDownloader
The user-agent string to be sent with HTTP requests.

V

value - Variable in class de.gustavblass.commons.Expiring
The value that will expire.
valueOf(String) - Static method in enum class de.gustavblass.commons.FuzzyBoolean
Returns the enum constant of this class with the specified name.
values() - Static method in enum class de.gustavblass.commons.FuzzyBoolean
Returns an array containing the constants of this enum class, in the order they are declared.

W

writeFile(byte[], File) - Static method in class de.gustavblass.commons.FileDownloader
Saves the content to the given local file.
C D E F G H I L M R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form