Index

A C D E F G H I L N O P R S T U V X 
All Classes and Interfaces|All Packages

A

aes(Function<String, byte[]>) - Static method in interface org.panteleyev.commons.crypto.AES
Return AES instance with specified key generation function.
AES - Interface in org.panteleyev.commons.crypto
This interface provides methods for AES encryption and decryption.
aes256() - Static method in interface org.panteleyev.commons.crypto.AES
Return AES instance with default 256-bit key generation function.
apply(T, Consumer<T>) - Static method in class org.panteleyev.commons.functional.Extensions
Calls consumer with value if value is not null, otherwise does nothing.
asStartElement() - Method in class org.panteleyev.commons.xml.XMLEventWrapper
asStartElement(QName) - Method in class org.panteleyev.commons.xml.XMLEventWrapper
Returns StartElementWrapper if XMLEvent.isStartElement() is true and name matches.
attribute(QName, Object) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes a single attribute.
attributes(Map<QName, ?>) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes several attributes.

C

Chainable Methods - Search tag in interface org.panteleyev.commons.functional.Result
Section
close() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Closes the wrapped reader.
close() - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Closes the writer.
Creating Result - Search tag in interface org.panteleyev.commons.functional.Result
Section

D

decrypt(byte[], String) - Method in interface org.panteleyev.commons.crypto.AES
Decrypt byte array.
decrypt(InputStream, String) - Method in interface org.panteleyev.commons.crypto.AES
Decrypt input stream.
decryptString(byte[], String) - Method in interface org.panteleyev.commons.crypto.AES
Decrypt string
DIGITS - Enum constant in enum class org.panteleyev.commons.password.PasswordCharacterSet
Digits.
document(Runnable) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes XML document.
document(QName, Runnable) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes XML document with root element.

E

element(QName, Runnable) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes XML element.
element(QName, Map<QName, ?>) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes element with attributes.
empty() - Static method in interface org.panteleyev.commons.functional.Result
Creates an empty successful result.
encrypt(byte[], String) - Method in interface org.panteleyev.commons.crypto.AES
Encrypt byte array.
encrypt(byte[], String, OutputStream) - Method in interface org.panteleyev.commons.crypto.AES
Encrypt bytes and write the result into the stream.
encrypt(String, String) - Method in interface org.panteleyev.commons.crypto.AES
Encrypt string.
encrypt(String, String, OutputStream) - Method in interface org.panteleyev.commons.crypto.AES
Encrypt string and write the result into the stream.
equals(Object) - Method in record class org.panteleyev.commons.functional.Failure
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.panteleyev.commons.functional.Success
Indicates whether some other object is "equal to" this one.
exception() - Method in record class org.panteleyev.commons.functional.Failure
Returns the value of the exception record component.
Extensions - Class in org.panteleyev.commons.functional
This class provides general purpose extension methods.

F

failure(Exception) - Static method in interface org.panteleyev.commons.functional.Result
Creates a failed result.
Failure<T> - Record Class in org.panteleyev.commons.functional
This class represents failed result with exception.
Failure(Exception) - Constructor for record class org.panteleyev.commons.functional.Failure
Creates an instance of a Failure record class.
flush() - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Flushes the writer.

G

generate(Set<PasswordCharacterSet>, int) - Method in class org.panteleyev.commons.password.PasswordGenerator
Generates password and avoids ambiguous letters.
generate(Set<PasswordCharacterSet>, int, boolean) - Method in class org.panteleyev.commons.password.PasswordGenerator
Generates password.
generate256key(String) - Static method in interface org.panteleyev.commons.crypto.AES
Default 256-bit key generator.
get() - Method in interface org.panteleyev.commons.functional.Result
Returns optional value if success or empty optional if failure.
getAttributeValue(QName) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value as string.
getAttributeValue(QName, boolean) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value as boolean.
getAttributeValue(QName, double) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value as double.
getAttributeValue(QName, int) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value as int.
getAttributeValue(QName, long) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value as long.
getAttributeValue(QName, Class<T>) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value of specified class.
getAttributeValue(QName, T) - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns attribute value of specified class or default value.
getElementText() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element.
getElementValue(boolean) - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element as boolean.
getElementValue(int) - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element as integer.
getElementValue(long) - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element as long.
getElementValue(Class<T>) - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element as typed value.
getElementValue(T) - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Reads the content of a text-only element as typed value.
getInputStream(InputStream, String) - Method in interface org.panteleyev.commons.crypto.AES
 
getName() - Method in class org.panteleyev.commons.xml.StartElementWrapper
Returns name of the wrapped element.
getOrThrow() - Method in interface org.panteleyev.commons.functional.Result
Returns value if success or throws exception if failure.
getOutputStream(OutputStream, String) - Method in interface org.panteleyev.commons.crypto.AES
 
getReader() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Returns wrapped reader instance.

H

Handling Result - Search tag in interface org.panteleyev.commons.functional.Result
Section
hashCode() - Method in record class org.panteleyev.commons.functional.Failure
Returns a hash code value for this object.
hashCode() - Method in record class org.panteleyev.commons.functional.Success
Returns a hash code value for this object.
hasNext() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Checks if there is next event available.

I

ifStartElement(QName, Consumer<StartElementWrapper>) - Method in class org.panteleyev.commons.xml.XMLEventWrapper
Calls handler if event is StartElement.
ifStartElement(QName, Predicate<StartElementWrapper>, Consumer<StartElementWrapper>) - Method in class org.panteleyev.commons.xml.XMLEventWrapper
Calls handler if event is StartElement, name matches and condition is true.
isEndElement(QName) - Method in class org.panteleyev.commons.xml.XMLEventWrapper
Checks if event is EndElement.
isFailure() - Method in interface org.panteleyev.commons.functional.Result
Returns if this result is a failure.
isSuccess() - Method in interface org.panteleyev.commons.functional.Result
Returns if this result is a success.

L

LOCAL_DATE_AS_EPOCH_DAY - Enum constant in enum class org.panteleyev.commons.xml.SerializationOption
Exports LocalDate as epoch day, otherwise as ISO_DATE.
LOWER_CASE_LETTERS - Enum constant in enum class org.panteleyev.commons.password.PasswordCharacterSet
Lower case letters.

N

newInstance(InputStream) - Static method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Creates new instance of XMLStreamWriterWrapper with default options.
newInstance(InputStream, Set<SerializationOption>) - Static method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Creates new instance of XMLStreamWriterWrapper.
newInstance(OutputStream) - Static method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Creates an instance of XMLStreamWriterWrapper with default options.
newInstance(OutputStream, Set<SerializationOption>) - Static method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Creates an instance of XMLStreamWriterWrapper with specified options.
nextEvent() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Returns wrapped next event.

O

onFailure(Consumer<Exception>) - Method in interface org.panteleyev.commons.functional.Result
Calls consumer with exception in case of failure.
onSuccess(Consumer<T>) - Method in interface org.panteleyev.commons.functional.Result
Calls consumer with result value in case of success.
org.panteleyev.commons - module org.panteleyev.commons
Provides Java commons API.
org.panteleyev.commons.crypto - package org.panteleyev.commons.crypto
AES256 encryption.
org.panteleyev.commons.functional - package org.panteleyev.commons.functional
Functional support.
org.panteleyev.commons.password - package org.panteleyev.commons.password
Password generation.
org.panteleyev.commons.xml - package org.panteleyev.commons.xml
XML wrappers, helpers, etc.

P

PasswordCharacterSet - Enum Class in org.panteleyev.commons.password
Defines password character sets.
PasswordGenerator - Class in org.panteleyev.commons.password
Implements password generation functionality.
PasswordGenerator() - Constructor for class org.panteleyev.commons.password.PasswordGenerator
 
Pattern Matching - Search tag in interface org.panteleyev.commons.functional.Result
Section
peek() - Method in class org.panteleyev.commons.xml.XMLEventReaderWrapper
Check the next XMLEvent without reading it from the stream.

R

Result<T> - Interface in org.panteleyev.commons.functional
A discriminated union that encapsulates either successful result with a value or failure with exception.

S

SerializationOption - Enum Class in org.panteleyev.commons.xml
Serialization options.
StartElementWrapper - Class in org.panteleyev.commons.xml
Convenience wrapper for StartElement instances.
success(T) - Static method in interface org.panteleyev.commons.functional.Result
Creates a successful result.
Success<T> - Record Class in org.panteleyev.commons.functional
This class represents successful result with value of type T.
Success(T) - Constructor for record class org.panteleyev.commons.functional.Success
Creates an instance of a Success record class.
SYMBOLS - Enum constant in enum class org.panteleyev.commons.password.PasswordCharacterSet
Symbols.

T

text(String) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes element text.
textElement(QName, Object) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes XML element with text.
textElement(QName, Map<QName, ?>, Object) - Method in class org.panteleyev.commons.xml.XMLStreamWriterWrapper
Writes element with attributes and text.
throwIfFailure() - Method in interface org.panteleyev.commons.functional.Result
Throws exception if failure.
toString() - Method in record class org.panteleyev.commons.functional.Failure
Returns a string representation of this record class.
toString() - Method in record class org.panteleyev.commons.functional.Success
Returns a string representation of this record class.

U

UPPER_CASE_LETTERS - Enum constant in enum class org.panteleyev.commons.password.PasswordCharacterSet
Upper case letters.

V

value() - Method in record class org.panteleyev.commons.functional.Success
Returns the value of the value record component.
valueOf(String) - Static method in enum class org.panteleyev.commons.password.PasswordCharacterSet
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.panteleyev.commons.xml.SerializationOption
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.panteleyev.commons.password.PasswordCharacterSet
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.panteleyev.commons.xml.SerializationOption
Returns an array containing the constants of this enum class, in the order they are declared.

X

XMLEventReaderWrapper - Class in org.panteleyev.commons.xml
Convenience wrapper for XMLEventReader instances.
XMLEventWrapper - Class in org.panteleyev.commons.xml
Convenience wrapper for XMLEvent instances.
XMLStreamWriterWrapper - Class in org.panteleyev.commons.xml
Convenience wrapper for XMLStreamWriter instances.
A C D E F G H I L N O P R S T U V X 
All Classes and Interfaces|All Packages