Index

D E F G H I M O P R T U V 
All Classes and Interfaces|All Packages|Constant Field Values

D

de.fxlae.typeid - package de.fxlae.typeid
 
de.fxlae.typeid.lib - package de.fxlae.typeid.lib
 
de.fxlae.typeid.util - package de.fxlae.typeid.util
 

E

encode(String, UUID) - Static method in class de.fxlae.typeid.lib.TypeIdLib
 
equals(Object) - Method in record class de.fxlae.typeid.TypeId
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class de.fxlae.typeid.util.Validated.Invalid
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class de.fxlae.typeid.util.Validated.Valid
Indicates whether some other object is "equal to" this one.

F

filter(String, Predicate<? super T>) - Method in interface de.fxlae.typeid.util.Validated
If the value is valid and matches the predicate, return it as a valid Validated, otherwise return an invalid Validated with the given error message.
filter(String, Predicate<? super T>) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
filter(String, Predicate<? super T>) - Method in record class de.fxlae.typeid.util.Validated.Valid
 
flatMap(Function<? super T, Validated<O>>) - Method in interface de.fxlae.typeid.util.Validated
Applies the provided mapping function if the value is valid, otherwise returns the current instance
flatMap(Function<? super T, Validated<O>>) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
flatMap(Function<? super T, Validated<O>>) - Method in record class de.fxlae.typeid.util.Validated.Valid
 

G

generate() - Static method in record class de.fxlae.typeid.TypeId
Creates a new TypeId without prefix, based on UUIDv7.
generate(String) - Static method in record class de.fxlae.typeid.TypeId
Creates a new prefixed TypeId based on UUIDv7.
get() - Method in interface de.fxlae.typeid.util.Validated
Returns the value if it's valid, otherwise throws.
get() - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
get() - Method in record class de.fxlae.typeid.util.Validated.Valid
 
getUuidV7() - Static method in class de.fxlae.typeid.lib.TypeIdLib
 

H

hashCode() - Method in record class de.fxlae.typeid.TypeId
Returns a hash code value for this object.
hashCode() - Method in record class de.fxlae.typeid.util.Validated.Invalid
Returns a hash code value for this object.
hashCode() - Method in record class de.fxlae.typeid.util.Validated.Valid
Returns a hash code value for this object.

I

ifInvalid(Consumer<String>) - Method in interface de.fxlae.typeid.util.Validated
Applies the message consuming function if the value is invalid, otherwise does nothing.
ifInvalid(Consumer<String>) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
ifInvalid(Consumer<String>) - Method in record class de.fxlae.typeid.util.Validated.Valid
 
ifValid(Consumer<T>) - Method in interface de.fxlae.typeid.util.Validated
Applies the consuming function if the value is valid, otherwise does nothing.
ifValid(Consumer<T>) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
ifValid(Consumer<T>) - Method in record class de.fxlae.typeid.util.Validated.Valid
 
invalid(String) - Static method in interface de.fxlae.typeid.util.Validated
Returns a new invalid Validated with the given error message.
Invalid(String) - Constructor for record class de.fxlae.typeid.util.Validated.Invalid
Creates an instance of a Invalid record class.
isValid() - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
isValid() - Method in interface de.fxlae.typeid.util.Validated
Returns true if the value is valid, otherwise false.
isValid() - Method in record class de.fxlae.typeid.util.Validated.Valid
 

M

map(Function<? super T, ? extends O>) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
map(Function<? super T, ? extends O>) - Method in interface de.fxlae.typeid.util.Validated
Applies the provided mapping function if the value is valid, otherwise returns the current instance
map(Function<? super T, ? extends O>) - Method in record class de.fxlae.typeid.util.Validated.Valid
 
message() - Method in record class de.fxlae.typeid.util.Validated.Invalid
Returns the value of the message record component.
message() - Method in interface de.fxlae.typeid.util.Validated
Returns the message if it's invalid, otherwise throws.
message() - Method in record class de.fxlae.typeid.util.Validated.Valid
 

O

of(String, UUID) - Static method in record class de.fxlae.typeid.TypeId
Creates a new TypeId, based on the given prefix and UUID.
of(UUID) - Static method in record class de.fxlae.typeid.TypeId
Creates a new TypeId without prefix, based on the given UUID.
orElse(T) - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
orElse(T) - Method in interface de.fxlae.typeid.util.Validated
Returns the value if valid, otherwise return other.
orElse(T) - Method in record class de.fxlae.typeid.util.Validated.Valid
 

P

parse(String) - Static method in record class de.fxlae.typeid.TypeId
Parses the textual representation of a TypeID and returns a TypeId instance.
parse(String, BiFunction<String, UUID, T>, Function<String, T>) - Static method in class de.fxlae.typeid.lib.TypeIdLib
 
parse(String, Function<TypeId, T>, Function<String, T>) - Static method in record class de.fxlae.typeid.TypeId
Parses the textual representation of a TypeID and executes a handler Function, depending on the outcome.
parseToOptional(String) - Static method in record class de.fxlae.typeid.TypeId
Parses the textual representation of a TypeID and returns an Optional.
parseToValidated(String) - Static method in record class de.fxlae.typeid.TypeId
Parses the textual representation of a TypeID and returns a Validated.
prefix() - Method in record class de.fxlae.typeid.TypeId
Returns the value of the prefix record component.

R

requireValidPrefix(String) - Static method in class de.fxlae.typeid.lib.TypeIdLib
 

T

toOptional() - Method in record class de.fxlae.typeid.util.Validated.Invalid
 
toOptional() - Method in interface de.fxlae.typeid.util.Validated
Returns an Optional with the valid value, otherwise an empty Optional.
toOptional() - Method in record class de.fxlae.typeid.util.Validated.Valid
 
toString() - Method in record class de.fxlae.typeid.TypeId
Returns the textual representation of this TypeId.
toString() - Method in record class de.fxlae.typeid.util.Validated.Invalid
Returns a string representation of this record class.
toString() - Method in record class de.fxlae.typeid.util.Validated.Valid
Returns a string representation of this record class.
TypeId - Record Class in de.fxlae.typeid
A record for representing TypeIDs.
TypeId(String, UUID) - Constructor for record class de.fxlae.typeid.TypeId
Creates an instance of a TypeId record class.
TypeIdLib - Class in de.fxlae.typeid.lib
 

U

uuid() - Method in record class de.fxlae.typeid.TypeId
Returns the value of the uuid record component.

V

valid(T) - Static method in interface de.fxlae.typeid.util.Validated
Returns a new valid Validated with the given value.
Valid(T) - Constructor for record class de.fxlae.typeid.util.Validated.Valid
Creates an instance of a Valid record class.
VALID_REF - Static variable in class de.fxlae.typeid.lib.TypeIdLib
 
Validated<T> - Interface in de.fxlae.typeid.util
A container for a value that is either valid or not.
Validated.Invalid<T> - Record Class in de.fxlae.typeid.util
Implementation of an "invalid Validated".
Validated.Valid<T> - Record Class in de.fxlae.typeid.util
Implementation of a "valid Validated".
value() - Method in record class de.fxlae.typeid.util.Validated.Valid
Returns the value of the value record component.
D E F G H I M O P R T U V 
All Classes and Interfaces|All Packages|Constant Field Values