Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accuracy() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the accuracy of the TimeProvider as TimeUnit
- accuracy() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
accuracyrecord component. - addDay(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Adds one day to the given date.
- addDays(LocalDate, int) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Adds the specified number of days to the given date.
- addDefault(Instant, long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Adds the given amount of the default accuracy to the given instant.
- addDefault(LocalDateTime, long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Adds the given amount of the accuracy configured in
TimeFactory.getAccuracy()to the given dateTime. - addSingle(Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Adds a single unit of the default accuracy to the given instant.
- addSingle(LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Adds a single unit of the accuracy configured in
TimeFactory.getAccuracy()to the given dateTime. - adjacent(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given
InstantIntervalis touching this interval. - adjacent(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if the given
Intervalis touching this Interval. - adjacent(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given
TimeIntervalis touching this interval. - anyOverlaps(Collection<InstantInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns true if any of the given intervals overlap with each other, otherwise false
- anyOverlaps(Collection<Interval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns true if any of the given intervals overlap with each other, otherwise false.
- anyOverlaps(Collection<TimeInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns true if any of the given intervals overlap with each other, otherwise false
- apply(BiFunction<T, O, R>, O) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that can be used to apply with a single method argument to a bi-function.
- applyIfBothNotNull(A, B, BiFunction<A, B, C>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
B
- BackOffUtils - Class in com.thanlinardos.spring_enterprise_library.math.utils
-
Utility class for calculating backoff delays.
- BackOffUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.math.utils.BackOffUtils
- BasicIdJpa - Class in com.thanlinardos.spring_enterprise_library.model.entity.base
-
Base class for JPA entities with a generated ID.
- BasicIdJpa() - Constructor for class com.thanlinardos.spring_enterprise_library.model.entity.base.BasicIdJpa
-
Default constructor.
- BasicIdJpa(Long) - Constructor for class com.thanlinardos.spring_enterprise_library.model.entity.base.BasicIdJpa
-
Constructs a BasicIdJpa with the specified ID.
- BasicIdModel - Class in com.thanlinardos.spring_enterprise_library.model.mapped.base
-
A basic model class that includes an ID field.
- BasicIdModel() - Constructor for class com.thanlinardos.spring_enterprise_library.model.mapped.base.BasicIdModel
-
Default constructor.
- BasicIdModel(BasicIdJpa) - Constructor for class com.thanlinardos.spring_enterprise_library.model.mapped.base.BasicIdModel
-
Constructs a BasicIdModel from a BasicIdJpa entity.
- boundEnd(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a new version of this InstantInterval, where the end date is bounded according to the given
upperBound. - boundEnd(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a new version of this interval, where the end date is bounded according to the given
upperBound. - boundEndDate(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a new version of this interval, where the end date is bounded according to the given
upperBound. - boundStart(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a new version of this InstantInterval, where the start date is bounded according to the given
lowerBoundEquivalent to callingInstantInterval.getOverlap(InstantInterval)with an InstantInterval starting fromlowerBoundand ending in null. - boundStart(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a new version of this interval, where the start date is bounded according to the given
lowerBoundEquivalent to callingTimeInterval.getOverlap(TimeInterval)with an interval starting fromlowerBoundand ending in null. - boundStartDate(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a new version of this interval, where the start date is bounded according to the given
lowerBound. - boundStartDateIfValid(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a new version of this InstantInterval, where the start date is bounded according to
InstantInterval.boundStart(Instant). - boundStartDateIfValid(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a new version of this interval, where the start date is bounded according to
Interval.boundStartDate(LocalDate). - boundStartDateIfValid(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a new version of this interval, where the start date is bounded according to
TimeInterval.boundStart(LocalDateTime). - buildResteasyClient(KeyAndTrustStoreProperties, KeyAndTrustStoreProperties) - Static method in class com.thanlinardos.spring_enterprise_library.https.utils.SslContextUtil
-
Builds a RESTEasy client with the specified keystore and truststore properties.
- buildSSLContext(KeyAndTrustStoreProperties, KeyAndTrustStoreProperties) - Static method in class com.thanlinardos.spring_enterprise_library.https.utils.SslContextUtil
-
Builds an SSL context with the specified keystore and truststore properties.
C
- chainAllFromOther(Collection<O>, Function<O, S>, BiConsumer<S, T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Creates a null-safe consumer that applies a function to a set of another objects, then a consumer to the result.
- chainAllFromSelf(Collection<O>, Function<T, S>, BiConsumer<S, O>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Creates a null-safe consumer that applies a function to the element, then a consumer to input object.
- chainFromOther(O, Function<O, S>, BiConsumer<S, T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Creates a null-safe consumer that applies a function to another object, then a consumer to the result.
- chainFromSelf(O, Function<T, S>, BiConsumer<S, O>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Creates a null-safe consumer that applies a function to the element, then a consumer to input object.
- CollectionUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Utility class for handling collections.
- CollectionUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
- com.thanlinardos.spring_enterprise_library - package com.thanlinardos.spring_enterprise_library
- com.thanlinardos.spring_enterprise_library.config - package com.thanlinardos.spring_enterprise_library.config
- com.thanlinardos.spring_enterprise_library.error.errorcodes - package com.thanlinardos.spring_enterprise_library.error.errorcodes
- com.thanlinardos.spring_enterprise_library.error.exceptions - package com.thanlinardos.spring_enterprise_library.error.exceptions
- com.thanlinardos.spring_enterprise_library.error.utils - package com.thanlinardos.spring_enterprise_library.error.utils
- com.thanlinardos.spring_enterprise_library.https - package com.thanlinardos.spring_enterprise_library.https
- com.thanlinardos.spring_enterprise_library.https.properties - package com.thanlinardos.spring_enterprise_library.https.properties
- com.thanlinardos.spring_enterprise_library.https.utils - package com.thanlinardos.spring_enterprise_library.https.utils
- com.thanlinardos.spring_enterprise_library.math - package com.thanlinardos.spring_enterprise_library.math
- com.thanlinardos.spring_enterprise_library.math.utils - package com.thanlinardos.spring_enterprise_library.math.utils
- com.thanlinardos.spring_enterprise_library.model.api - package com.thanlinardos.spring_enterprise_library.model.api
- com.thanlinardos.spring_enterprise_library.model.entity.base - package com.thanlinardos.spring_enterprise_library.model.entity.base
- com.thanlinardos.spring_enterprise_library.model.mapped.base - package com.thanlinardos.spring_enterprise_library.model.mapped.base
- com.thanlinardos.spring_enterprise_library.objects.utils - package com.thanlinardos.spring_enterprise_library.objects.utils
- com.thanlinardos.spring_enterprise_library.parse.utils - package com.thanlinardos.spring_enterprise_library.parse.utils
- com.thanlinardos.spring_enterprise_library.time - package com.thanlinardos.spring_enterprise_library.time
- com.thanlinardos.spring_enterprise_library.time.api - package com.thanlinardos.spring_enterprise_library.time.api
- com.thanlinardos.spring_enterprise_library.time.constants - package com.thanlinardos.spring_enterprise_library.time.constants
- com.thanlinardos.spring_enterprise_library.time.model - package com.thanlinardos.spring_enterprise_library.time.model
- com.thanlinardos.spring_enterprise_library.time.properties - package com.thanlinardos.spring_enterprise_library.time.properties
- com.thanlinardos.spring_enterprise_library.time.utils - package com.thanlinardos.spring_enterprise_library.time.utils
- com.thanlinardos.spring_enterprise_library.tuple - package com.thanlinardos.spring_enterprise_library.tuple
- combineToList(Collection<T>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns a combined list of the input collections.
- combineToList(List<T>, List<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns a combined list of the two input lists.
- combineToSet(Collection<T>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns a combined set of the input collections.
- combineToSet(Set<T>, Set<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns a combined set of the two input sets.
- compareTo(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
- compareTo(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
- compareTo(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
- compose(Function<T1, T2>, Function<T2, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that chains two methods and return the combined result.
- composeAllNullSafe(Function<T1, Set<T2>>, Function<T2, Set<R>>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that chains two methods in a null safe wrapper and return the combined result.
- composeNullSafe(Function<T1, T2>, Function<T2, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that chains two methods in a null safe wrapper and return the combined result.
- composeNullSafe(Function<T1, T2>, Function<T2, T3>, Function<T3, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that chains three methods in a null safe wrapper and return the combined result.
- composeWithSetNullSafe(Function<T1, Set<T2>>, Function<T2, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Method that chains two methods in a null safe wrapper and return the combined result.
- consideredEqual(BiPredicate<T, S>, List<T>, List<S>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Method that determines if two lists are considered equal by applying a two-argument predicate to corresponding elements in the lists.
- consideredEqualIgnoringOrder(BiPredicate<B, B>, Collection<B>, Collection<B>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns: true if both collections are null or empty false if one is null or empty and the other isn't false if the two collections have different sizes true if none of the previous conditions apply, and all elements of the first collection a return true for the given predicate on any element of the second collection b (and vice versa) .
- consideredNotEqual(BiPredicate<T, S>, List<T>, List<S>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Method that determines if two lists are NOT considered equal by applying a two-argument predicate to corresponding elements in the lists.
- contains(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given
InstantIntervalis fully contained within thisInstantInterval. - contains(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if this
Intervalfully contains the given Interval. - contains(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given
TimeIntervalis fully contained within this interval. - contains(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given instant is contained within this InstantInterval.
- contains(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if the given date is contained within this interval.
- contains(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given dateTime is contained within this interval.
- contains(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given
InstantIntervalis fully contained within thisInstantInterval. - contains(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns true if this
Intervalfully contains the given yearMonth, otherwise false. - contains(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given
YearMonthis fully contained within this interval. - contains(Collection<R>, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
Collection.contains(Object), returns it as a predicate itself.
Important the collection can throw exceptions if as an example it does not allow nulls, it is up to the Collection implementation
Is often a shorthand toPredicateUtils.filterBy(Predicate, Function)when the predicate is a someCollection::contains method. - contains(Collection<T>, Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the given collection contains an element that matches the predicate.
- contains(T[], Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the given array contains an element that matches the predicate.
- containsAnyNull(Collection<A>, Function<A, B>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns true if the result of the
getteris null for any element of the collection. - containsAnyOf(Collection<T>, T...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the given collection contains an element that matches any value.
- containsDate(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.containsDate(LocalDate)(LocalDate)} on a temporal it takes theLocalDateas an input. - containsDate(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity contains the specified date.
- containsDate(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.containsDate(LocalDate)on a temporal it takes theLocalDateas an input. - containsInterval(DateTemporal) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity contains another temporal entity's interval.
- containsMonth(YearMonth) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity contains the specified month.
- containsNullAsMax(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given instant is contained within this InstantInterval, treating null as MAX_INSTANT.
- containsNullAsMax(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if the given date is contained within this interval, treating null as MAX_DATE.
- containsNullAsMax(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given dateTime is contained within this interval, treating null as
TimeFactory.getMaxDateTime(). - containsNullAsMin(Instant) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if the given instant is contained within this InstantInterval, treating null as MIN_INSTANT.
- containsNullAsMin(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if the given date is contained within this interval, treating null as MIN_DATE.
- containsNullAsMin(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if the given dateTime is contained within this interval, treating null as
TimeFactory.getMinDateTime(). - CoreException - Exception Class in com.thanlinardos.spring_enterprise_library.error.exceptions
-
Core exception class that includes an
ErrorCodeand supports message formatting with arguments. - CoreException(ErrorCode, String) - Constructor for exception class com.thanlinardos.spring_enterprise_library.error.exceptions.CoreException
- CoreException(ErrorCode, String, Object...) - Constructor for exception class com.thanlinardos.spring_enterprise_library.error.exceptions.CoreException
- CoreException(ErrorCode, String, Throwable) - Constructor for exception class com.thanlinardos.spring_enterprise_library.error.exceptions.CoreException
- CoreException(ErrorCode, String, Throwable, Object...) - Constructor for exception class com.thanlinardos.spring_enterprise_library.error.exceptions.CoreException
- createCoreException(String) - Method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Creates a CoreException with this error code and the given message.
- createCoreException(String, Object[]) - Method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Creates a CoreException with this error code, the given message and arguments for message formatting.
- createCoreException(String, Throwable) - Method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Creates a CoreException with this error code, the given message and cause.
- createCoreException(String, Throwable, Object[]) - Method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Creates a CoreException with this error code, the given message, a cause and arguments for message formatting.
D
- DateTemporal - Interface in com.thanlinardos.spring_enterprise_library.time.api
-
Interface representing a temporal entity with a date interval.
- DateTimeUtils - Class in com.thanlinardos.spring_enterprise_library.time.utils
-
Utility class for working with
LocalDateTimeobjects. - DateTimeUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
- DateUtils - Class in com.thanlinardos.spring_enterprise_library.time.utils
-
Utility class for date operations.
- DateUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
- distinctByKey(Function<? super T, ?>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Will filter items in distinct call by key instead of using equals or hashcode methods.
- doubleValue() - Method in class com.thanlinardos.spring_enterprise_library.math.UInt
-
Returns the value of this UInt as a double.
- duplicateByKey(Function<? super T, ?>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Will filter items for duplicates by key.
E
- EMPTY_LIST - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating that a list was expected to be non-empty but was empty.
- emptyListIfNull(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns an empty list if the given collection object was null, otherwise maps the collection to a list.
- end() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the value of the
endrecord component. - end() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the value of the
endrecord component. - end() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the value of the
endrecord component. - endsAfter(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.endsAfter(LocalDate)on a temporal it takes theLocalDateas an input. - endsAfter(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity ends after the specified date.
- endsAfter(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.endsAfter(LocalDate)on a temporal it takes theLocalDateas an input. - endsAfterOrOn(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.endsAfterOrOn(LocalDate)on a temporal it takes theLocalDateas an input. - endsAfterOrOn(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity ends after or on the specified date.
- endsAfterOrOn(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.endsAfterOrOn(LocalDate)on a temporal it takes theLocalDateas an input. - epochMilliToZonedDateTime(Long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Converts epoch milliseconds to
ZonedDateTimein the system default time zoneTimeFactory.getDefaultZoneId(). - equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Indicates whether some other object is "equal to" this one.
- equalsInterval(DateTemporal) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity is equal to another temporal entity's interval.
- ErrorCode - Enum Class in com.thanlinardos.spring_enterprise_library.error.errorcodes
-
Enumeration of error codes used in the application.
- evaluateAllTrue(Supplier<Boolean>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Evaluates all the suppliers if needed and if all returns true then it returns true.
- evaluateAnyTrue(Supplier<Boolean>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Evaluates any of the suppliers if needed and if any of them is true, returns true.
- ExceptionUtils - Class in com.thanlinardos.spring_enterprise_library.error.utils
-
A util with methods helpful for handling exceptions and
ErrorCodes. - ExceptionUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.error.utils.ExceptionUtils
F
- filterBy(BiPredicate<R, I>, Function<T, R>, I) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor on the predicate together with the argument.
- filterBy(Predicate<R>, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor on the predicate, returns it as a predicate itself.
- filterByMaxValueForField(Collection<T>, Function<T, R>, Comparator<R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
This function filters a collection (and transforms it to a List) to only include the elements having the maximum value based on a given extractor and comparator.
- filterByPredicate(Collection<T>, Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Filters the entities by the given predicate.
- filterExactlyOneByKey(Function<? super T, R>, String, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Applies a filter to the stream, which ensures that based on the keyExtractor only one element is present.
- filterExactlyOneByKey(Function<? super T, R>, Function<R, String>, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Applies a filter to the stream, which ensures that based on the keyExtractor only one element is present.
- findExactlyOne(String, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds a single object.
- findExactlyOne(String, Supplier<String[]>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds a single object.
- findExactlyOne(Collection<T>, Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Finds exactly one entity based on the predicate, otherwise throws.
- findExactlyOneOrNone(ErrorCode, String, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds either a single object or no object.
- findExactlyOneOrNone(String, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds either a single object or no object.
- findExactlyOneOrNone(String, Supplier<String[]>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds either a single object or no object.
- findExactlyOneOrNone(Collection<T>, Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Finds exactly one or none in the colleciton, based on the predicate, otherwise throws.
- findExactlyOneOtherwiseNone() - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Finds the object if there is only a single element in the stream, otherwise if finds nothing.
- first() - Method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Returns the value of the
firstrecord component. - floatValue() - Method in class com.thanlinardos.spring_enterprise_library.math.UInt
-
Returns the value of this UInt as a float.
- forIsoDateMilliToNull(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an open-ended
TimeIntervalsame as inTimeInterval.forIsoDateToNull(String), but with overridden millisecond accuracy. - forIsoDates(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalusing ISO 8601 formatted dates (such as "2007-12-03"). - forIsoDates(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Constructs an
Intervalusing ISO 8601 formatted dates ("YYYY-MM-DD"). - forIsoDates(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing ISO 8601 formatted dates (such as "2007-12-03"). - forIsoDates(String, String, TimeUnit) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing ISO 8601 formatted dates (such as "2007-12-03"), with the given accuracy to override the default with. - forIsoDates(String, String, TimeUnit, ZoneOffset) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalusing ISO 8601 formatted dates (such as "2007-12-03"). - forIsoDatesMilli(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalsame as inTimeInterval.forIsoDates(String, String, TimeUnit), but with overridden millisecond accuracy. - forIsoDatesMilliUTC(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalsame as inInstantInterval.forIsoDates(String, String, TimeUnit, ZoneOffset), but using milliseconds accuracy and UTC zoneOffset. - forIsoDateTimes(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing ISO 8601 formatted date times (such as "2007-12-03T10:15:30.00"). - forIsoDateToNull(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing ISO 8601 formatted date (such as "2007-12-03"), starting from the given date time and with open end. - forIsoInstants(String, String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalusing ISO 8601 formatted Instants (such as "2007-12-03T10:15:30.00Z"). - forIsoMonth(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalusing a ISO 8601 formatted month ("YYYY-MM"). - forIsoMonth(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Constructs an
Intervalusing a ISO 8601 formatted month ("YYYY-MM"). - forIsoMonth(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing a ISO 8601 formatted month ("YYYY-MM"). - forIsoYear(int) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalusing a year. - forIsoYear(int) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Constructs an
Intervalusing a year. - forIsoYear(int) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalusing a year. - formatErrorMessageWithArgs(ErrorCode, String, Object[]) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StringUtils
-
Formats an error message by including the error code and name, along with the provided message and arguments.
- formatMessageWithArgs(String, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StringUtils
-
Formats a message with the provided arguments if the message contains placeholders.
- fromEndOfLocalDate(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Converts a
LocalDateto aLocalDateTimeat the end of the day (23:59:59.999...). - fromEndOfLocalDate(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Converts a LocalDate to an Instant at the end of the given date's day in the default time zone and represented with the default accuracy.
- fromEndOfLocalDate(LocalDate, TimeUnit) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Converts a
LocalDateto aLocalDateTimeat the end of the day (23:59:59.999...). - fromEndOfLocalDate(LocalDate, TimeUnit, ZoneOffset) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Converts a LocalDate to an Instant at the end of the day in the specified ZoneOffset and accuracy.
- fromIsoDateToNullMilliUTC(String) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalsame as inInstantInterval.forIsoDates(String, String, TimeUnit, ZoneOffset), but using milliseconds accuracy and UTC zoneOffset, and with a null end date. - fromLocalDate(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Converts a
LocalDateto aLocalDateTimeat the start of the day (00:00). - fromLocalDate(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Converts a LocalDate to an Instant at the start of the day in the default time zone.
- fromLocalDate(LocalDate, ZoneOffset) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Converts a LocalDate to an Instant at the start of the day in the specified ZoneOffset.
- fromMillis(long) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Obtains an instance of LocalDateTime from provided milliseconds in the specified time-zone
- fromMillis(long) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- FunctionUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Very useful utility methods for working with Functions.
- FunctionUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
G
- getAccuracy() - Method in class com.thanlinardos.spring_enterprise_library.time.properties.TimeProviderProperties
-
Returns the accuracy as a TimeUnit enum.
- getAccuracy() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the accuracy of the date provider.
- getChronoAccuracy() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the accuracy of the TimeProvider as ChronoUnit
- getChronoAccuracy() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getCommaSeparatedListOfIds(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns a concatenated comma separated list of ids from the entities.
- getCoreExceptionErrorCodeOrUnexpectedSystemError(Exception) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
- getCurrentDate() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Obtains the current date from the system clock in the specified time-zone
- getCurrentDate() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getCurrentDateTime() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Obtains the current date-time from the system clock in the specified time-zone
- getCurrentDateTime() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getCurrentInstant() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Obtains the current instant from the system clock in the default time-zone
- getCurrentInstant() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getCurrentTimeMillis() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Obtains the current time in milliseconds from the system clock in the specified time-zone.
- getCurrentTimeMillis() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getDate() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the current date.
- getDateTime() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the current date time.
- getDebugString(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns useful debugging information like class, id, and toString representation.
- getDebugString(T) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns useful debugging information like class, id, and toString representation.
- getDebugStringSuppliers(T...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Returns a Supplier of Strings, derived via
ObjectUtils.getDebugString(Object), based on the given object instances. - getDefaultZone() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the default ZoneOffset of the TimeProvider
- getDefaultZone() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets current time zone.
- getDefaultZone() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getDefaultZoneId() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets current time zone.
- getEndNullAsMax() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the end Instant, or the maximum Instant if the end is null.
- getEndNullAsMax() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the end date, or the maximum date if the end is null.
- getEndNullAsMax() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the end LocalDateTime, or the maximum LocalDateTime if the end is null.
- getEndOfDay(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Returns LocalDateTime with the time of the end of the day based on given LocalDate NOTE: Returned time will be 23:59 (where LocalTime.MAX is 23:59:59.999999999)
- getEndOfDay(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getEpochMilliFromLocalDateTime(LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Converts
LocalDateTimeto epoch milliseconds in the system default time zoneTimeFactory.getDefaultZoneId(). - getExponentialBackoffDelay(int, int, int) - Static method in class com.thanlinardos.spring_enterprise_library.math.utils.BackOffUtils
-
Exponential backoff delay calculation.
- getFirstDayOfQuarter(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Returns new instance of LocalDate with first day of quarter for given date.
- getFirstDayOfQuarter(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getFirstDayOfYear(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Return new instance of LocalDate with first day of the year.
- getFirstDayOfYear(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getFirstNonNull(Supplier<T>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns the first non-null element found by evaluating the suppliers.
- getFirstPresent(Supplier<Optional<T>>...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns the first present optional element found by evaluating the suppliers.
- getId() - Method in interface com.thanlinardos.spring_enterprise_library.model.api.WithId
-
Gets the unique identifier.
- getIdOrNull(BasicIdJpa) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns the id of the entity, otherwise null.
- getIds(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns a set of ids of the entities
- getInstant() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the current instant.
- getInterval() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Gets the date interval of the temporal entity.
- getInterval() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
- getLastDayOfQuarter(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Returns new instance of LocalDate with last day of quarter for given date.
- getLastDayOfQuarter(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getLastDayOfYear(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Return new instance of LocalDate with last day of the year.
- getLastDayOfYear(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getLastDayOfYear(Year) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Gets the first day of the given year.
- getLocalDateFromEpochMilli(Long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Converts epoch milliseconds to
LocalDatein the system default time zoneTimeFactory.getDefaultZoneId(). - getLocalDateTimeFromEpochMilli(Long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Converts epoch milliseconds to
LocalDateTimein the system default time zoneTimeFactory.getDefaultZoneId(). - getMaxDate() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the maximum date that can be used in the system.
- getMaxDateTime() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the maximum date time that can be used in the system.
- getMaxInstant() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the minimum instant that can be used in the system.
- getMinDate() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the minimum date that can be used in the system.
- getMinDateTime() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the minimum date time that can be used in the system.
- getMinInstant() - Static method in class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Gets the minimum instant that can be used in the system.
- getNotOverlaps(InstantInterval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Vararg variant of
InstantInterval.getNotOverlaps(Collection) - getNotOverlaps(Interval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Vararg variant of
Interval.getNotOverlaps(Collection). - getNotOverlaps(TimeInterval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Vararg variant of
TimeInterval.getNotOverlaps(Collection) - getNotOverlaps(Collection<InstantInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a normalized list of the portions of
intervalsthat do not overlap with this InstantInterval - getNotOverlaps(Collection<Interval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a normalized list of the portions of
intervalsthat do not overlap with this interval. - getNotOverlaps(Collection<TimeInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a normalized list of the portions of
intervalsthat do not overlap with this interval - getOrNull(T, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns the value extracted by the getter from the object if the object is not null, otherwise returns null.
- getOverlap(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlap
- getOverlap(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the overlap between this Interval and the given interval, otherwise an empty Optional if there is no overlap.
- getOverlap(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the overlap between this interval and the given interval, otherwise an empty Optional if there is no overlap
- getOverlaps(InstantInterval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Vararg variant of
InstantInterval.getOverlaps(Collection) - getOverlaps(Interval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Vararg variant of
Interval.getOverlaps(Collection) - getOverlaps(TimeInterval...) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Vararg variant of
TimeInterval.getOverlaps(Collection) - getOverlaps(Collection<InstantInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a normalized (see
InstantInterval.normalize(Collection)) list of overlaps between the given intervals and this InstantInterval - getOverlaps(Collection<InstantInterval>, boolean) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a normalized (see
InstantInterval.normalize(Collection)) list of overlaps between the given intervals and this InstantInterval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervals - getOverlaps(Collection<Interval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a normalized (see
Interval.normalize(Collection)) list of overlaps between the given intervals and this interval. - getOverlaps(Collection<Interval>, boolean) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a normalized (see
Interval.normalize(Collection)) list of overlaps between the given intervals and this interval. - getOverlaps(Collection<TimeInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a normalized (see
TimeInterval.normalize(Collection)) list of overlaps between the given intervals and this interval - getOverlaps(Collection<TimeInterval>, boolean) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a normalized (see
TimeInterval.normalize(Collection)) list of overlaps between the given intervals and this interval Whether to merge adjacent overlaps is subject to the value ofmergeAdjacentIntervals - getPathParameterFromLocationURI(Response) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Extracts the last path parameter from the Location URI in a JAX-RS Response.
- getStackTrace(Throwable) - Static method in class com.thanlinardos.spring_enterprise_library.error.utils.ExceptionUtils
-
Gets the stack trace from a Throwable as a String, including suppressed and cause exceptions.
- getStartNullAsMin() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the start Instant, or the minimum Instant if the start is null.
- getStartNullAsMin() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the start date, or the minimum date if the start is null.
- getStartNullAsMin() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the start LocalDateTime, or the minimum LocalDateTime if the start is null.
- getStartOfDay(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Returns the LocalDateTime with the start time of the day based on the given LocalDate
- getStartOfDay(LocalDate) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- getTimeZoneId() - Method in class com.thanlinardos.spring_enterprise_library.time.properties.TimeProviderProperties
-
Returns the time zone as a ZoneId object.
H
- hasDifferenceBetweenAnyWay(Set<T>, Set<U>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Determines if there is any difference between the two sets.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Returns a hash code value for this object.
- hasSizeInRange(Collection<T>, Integer, Integer) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns true if the collection has a size in the given range.
- HttpsClientLibraryApplication - Class in com.thanlinardos.spring_enterprise_library
-
Main class for the HTTPS Client Library Spring Boot application.
- HttpsClientLibraryApplication() - Constructor for class com.thanlinardos.spring_enterprise_library.HttpsClientLibraryApplication
-
Default constructor.
I
- ILLEGAL_ARGUMENT - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating an illegal argument was provided.
- instantFromNowPlusSeconds(long) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Creates an
InstantIntervalstarting from now plus the given seconds. - instantFromNowPlusSeconds(long) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- InstantInterval - Record Class in com.thanlinardos.spring_enterprise_library.time.model
-
Represents a time InstantInterval with a start and end date.
- InstantInterval(Interval) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the givenInterval. - InstantInterval(Instant, Instant) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an InstantInterval with the given start and end dates.
- InstantInterval(LocalDate) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the givenLocalDate, where the interval will span the whole given day. - InstantInterval(LocalDate, LocalDate) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the given start and endLocalDates. - InstantInterval(LocalDate, LocalDate, TimeUnit, ZoneOffset) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the given start and endLocalDates. - InstantInterval(Year) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the givenYear. - InstantInterval(YearMonth) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Constructs an
InstantIntervalfor the givenYearMonth. - InstantUtils - Class in com.thanlinardos.spring_enterprise_library.time.utils
-
Utility class for working with
Instantobjects. - InstantUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
- intersects(Collection<T>, Collection<U>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Determines if there is any intersection between elements in two collections.
- Interval - Record Class in com.thanlinardos.spring_enterprise_library.time.model
-
Represents a time interval with a start and end date.
- Interval(LocalDate, LocalDate) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Constructs an Interval with the given start and end dates.
- Interval(Year) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.Interval
- Interval(YearMonth) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.Interval
- intValue() - Method in class com.thanlinardos.spring_enterprise_library.math.UInt
-
Returns the value of this UInt as an int.
- isAfterNullAsMax(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Checks if instant1 is after instant2, treating null as
TimeFactory.getMaxInstant(). - isAfterNullAsMax(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Checks if date1 is after date2, treating null as
TimeFactory.getMaxDate(). - isAfterNullAsMax(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Checks if dateTime1 is after dateTime2, treating null as
TimeFactory.getMaxDate(). - isAfterOrEqual(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Checks if instant1 is after or equal to instant2, treating null as
TimeFactory.getMinInstant(). - isAfterOrEqual(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Checks if date1 is after or equal to date2, treating null as
TimeFactory.getMaxDate(). - isAfterOrEqual(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Checks if dateTime1 is after or equal to dateTime2, treating null as
TimeFactory.getMaxDate(). - isAllObjectsEquals(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if all the objects supplied are equal.
- isAllObjectsNotNull(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if all the objects supplied are not null.
- isAllObjectsNotNullAndEquals(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if all the objects supplied are not null and are all equal.
- isAllObjectsNull(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if all the objects supplied are null.
- isAnyObjectNotNull(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if any of the objects supplied are not null.
- isAnyObjectNull(Object, Object...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
-
Returns true if any of the objects supplied are null.
- isBeforeNullAsMin(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Checks if instant1 is before instant2, treating null as
TimeFactory.getMinInstant(). - isBeforeNullAsMin(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Checks if date1 is before date2, treating null as
TimeFactory.getMinDate(). - isBeforeNullAsMin(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Checks if dateTime1 is before dateTime2, treating null as
TimeFactory.getMinDate(). - isBeforeOrEqual(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Checks if instant1 is before or equal to instant2, treating null as
TimeFactory.getMaxInstant(). - isBeforeOrEqual(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Checks if date1 is before or equal to date2, treating null as
TimeFactory.getMinDate(). - isBeforeOrEqual(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Checks if dateTime1 is before or equal to dateTime2, treating null as
TimeFactory.getMinDate(). - isContainedIn(DateTemporal) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity is contained within another temporal entity's interval.
- isContainedIn(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.isContainedIn(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - isContainedIn(LocalDate, LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity is contained within the specified date range.
- isContainedIn(Function<T, R>, LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.isContainedIn(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - isContainedIn(Function<T, R>, Collection<R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
CollectionUtils.isIn(Object, Collection), returns it as a predicate itself. - isContainedIn(Function<T, R>, R...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
CollectionUtils.isIn(Object, Object[]), returns it as a predicate itself. - isEmpty() - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Collects the result of the stream and applies
CollectionUtils.isEmpty(Collection)to it - isEmpty(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the collection is null or empty.
- isEnabled() - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Checks if both the path and password are set (not null).
- isEqualByIdTo(T) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if entity is equal to the compare to entity by id.
- isEqualTo(R, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
Objects.equals(Object, Object), returns it as a predicate itself. - isEqualToByKey(T, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that tests if
compareTois not null, and the result ofextractoris equal to result ofextractoron the comparing object. - isFalse(Function<T, Boolean>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if the input extractor's return value is equal to
Boolean.FALSE. - isIn(T, Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns if the given value is in the supplied values.
- isIn(T, T...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns if the given value is in the supplied values.
- isInRange(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.isInRange(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - isInRange(LocalDate, LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the temporal entity is within the specified date range.
- isInRange(Function<T, R>, LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.isInRange(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - isNotContainedIn(Function<T, R>, Collection<R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
CollectionUtils.isNotIn(Object, Collection), returns it as a predicate itself. - isNotContainedIn(Function<T, R>, R...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
CollectionUtils.isNotIn(Object, Object[]), returns it as a predicate itself. - isNotEmpty() - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Collects the result of the stream and applies
CollectionUtils.isNotEmpty(Collection)to it. - isNotEmpty(Object[]) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the array is not null or empty.
- isNotEmpty(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the collection is not null or empty.
- isNotEqualByIdTo(T) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if the entity is not equal to the compare to entity by id.
- isNotEqualTo(R, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
Objects.equals(Object, Object), returns it as a predicate itself. - isNotIn(T, Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns if the given value is not in the supplied values.
- isNotIn(T, T...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns if the given value is not in the supplied values.
- isNotValid(Instant, Instant) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Validates whether the start Instant is before or equal to the end Instant.
- isNotValid(LocalDate, LocalDate) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Validates whether the start date is before or equal to the end date.
- isNotValid(LocalDateTime, LocalDateTime) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Validates whether the start dateTime is before or equal to the end dateTime.
- isNull(Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if the result of the extractor is null.
- isTrue(Function<T, Boolean>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if the input extractor's return value is equal to
Boolean.TRUE. - isValid(Instant, Instant) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Validates whether the start Instant is before or equal to the end Instant.
- isValid(LocalDate, LocalDate) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Validates whether the start date is before or equal to the end date.
- isValid(LocalDateTime, LocalDateTime) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Validates whether the start LocalDateTime is before or equal to the end LocalDateTime.
K
- KeyAndTrustStoreProperties - Record Class in com.thanlinardos.spring_enterprise_library.https.properties
-
Properties for configuring key and trust stores.
- KeyAndTrustStoreProperties(Resource, String) - Constructor for record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Creates an instance of a
KeyAndTrustStorePropertiesrecord class.
L
- LIST_NOT_SAME_SIZE - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating that two lists were expected to be of the same size but were not.
- listOf(T...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Creates a list of elements.
- longValue() - Method in class com.thanlinardos.spring_enterprise_library.math.UInt
-
Returns the value of this UInt as a long.
M
- main(String[]) - Static method in class com.thanlinardos.spring_enterprise_library.HttpsClientLibraryApplication
-
The main method to run the Spring Boot application.
- MAX_VALUE - Static variable in class com.thanlinardos.spring_enterprise_library.math.UInt
-
The maximum value for an unsigned integer (2^32 - 1)
- maxDate() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the maximum date that can be used in the system.
- maxDate() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
maxDaterecord component. - maxDateTime() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the maximum date time that can be used in the system.
- maxDateTime() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
maxDateTimerecord component. - maxNullAsMax(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Returns the maximum of two Instants, treating null as
TimeFactory.getMaxInstant(). - maxNullAsMax(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Returns the maximum of two LocalDate values, treating null as the maximum possible date.
- maxNullAsMax(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Returns the maximum of two dateTimes, treating null as
TimeFactory.getMaxDateTime(). - maxNullAsMin(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Returns the maximum of two Instants, treating null as
TimeFactory.getMaxInstant(). - maxNullAsMin(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Returns the maximum of two LocalDate values, treating null as the minimum possible date.
- maxNullAsMin(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Returns the maximum of two dateTimes, treating null as
TimeFactory.getMinDateTime(). - merge(BiPredicate<T, T>, BinaryOperator<R>, Function<T, R>, List<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Method that uses an input to operate on the 2 elements at a time, after converting them to type
CollectionUtilswith themergeFunction. - MIN_VALUE - Static variable in class com.thanlinardos.spring_enterprise_library.math.UInt
-
The minimum and maximum values for an unsigned integer
- minDate() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the minimum date that can be used in the system.
- minDate() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
minDaterecord component. - minDateTime() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the minimum date time that can be used in the system.
- minDateTime() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
minDateTimerecord component. - minNullAsMax(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Returns the minimum of two Instants, treating null as
TimeFactory.getMaxInstant(). - minNullAsMax(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Returns the minimum of two LocalDate values, treating null as the maximum possible date.
- minNullAsMax(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Returns the minimum of two dateTimes, treating null as
TimeFactory.getMaxDateTime(). - minNullAsMin(Instant, Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Returns the minimum of two Instants, treating null as
TimeFactory.getMinInstant(). - minNullAsMin(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Returns the minimum of two LocalDate values, treating null as the minimum possible date.
- minNullAsMin(LocalDateTime, LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Returns the minimum of two dateTimes, treating null as
TimeFactory.getMinDateTime(). - MORE_THAN_ONE_FOUND - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating that more than one result was found when only one was expected.
N
- negate(Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Negates the input predicate.
- negateBoolean(Function<T, Boolean>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Negates the result of input function.
- NON_EMPTY_LIST - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating that a list was expected to be empty but was not.
- NONE_FOUND - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating that no results were found when at least one was expected.
- nonNull(Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks if the result of the extractor is not null.
- normalize(Collection<InstantInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- normalize(Collection<InstantInterval>, boolean) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- normalize(Collection<Interval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- normalize(Collection<Interval>, boolean) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- normalize(Collection<TimeInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- normalize(Collection<TimeInterval>, boolean) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- notContains(Collection<R>, Function<T, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Applies the result of the extractor to
Collection.contains(Object)and inverts the result, returns it as a predicate itself.
Important the collection can throw exceptions if as an example it does not allow nulls, it is up to the Collection implementation
Is often a shorthand toPredicateUtils.filterBy(Predicate, Function)when the predicate is a negation of someCollection::contains method. - notContains(Collection<T>, Predicate<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns whether the given collection does not contain an element that matches the predicate.
- NULL_AS_MAX_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
null as maximum date
- NULL_AS_MAX_DATE_TIME_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
null as maximum date-time
- NULL_AS_MAX_INSTANT_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
null as maximum instant
- NULL_AS_MIN_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
Comparators that handle null values by treating them as minimum or maximum values.
- NULL_AS_MIN_DATE_TIME_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
null as minimum date-time
- NULL_AS_MIN_INSTANT_COMPARATOR - Static variable in class com.thanlinardos.spring_enterprise_library.time.constants.TimeConstants
-
null as minimum instant
O
- ObjectUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Utility class for object-related operations.
- ObjectUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.ObjectUtils
- of(S, T) - Static method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Creates a new
Pairfor the given elements. - of(T, Function<T, Collection<R>>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Gets the stream of collection from a non-null object
- ofNullable(Collection<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Gets the stream of the collection or empty stream if the collection is null.
- ofNullable(T[]) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Gets the stream of the array or empty stream if the array is null.
- ofNullable(T, Function<T, Collection<R>>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Gets the stream of a collection from the object or empty stream if the collection or object is null.
- overlap(DateTemporal) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(DateTemporal)on a temporal it takes theDateTemporalas an input. - overlap(Function<T, R>, DateTemporal) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(DateTemporal)on a temporal it takes theDateTemporalas an input. - overlaps(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if this
InstantIntervaloverlaps the given interval. - overlaps(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if this
Intervaloverlaps the given Interval. - overlaps(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if this
TimeIntervaloverlaps the given interval. - overlaps(Year) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns true if this
Intervaloverlaps with the given year, otherwise false. - overlaps(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns true if this
InstantIntervaloverlaps with the given yearMonth, otherwise false. - overlaps(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns true if this
Intervaloverlaps with the given yearMonth, otherwise false. - overlaps(YearMonth) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns true if this
TimeIntervaloverlaps with the given yearMonth, otherwise false. - overlaps(Collection<InstantInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns true if this
InstantIntervaloverlaps with any of the given intervals, otherwise false. - overlaps(Collection<Interval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if this
Intervaloverlaps with any of the given intervals, otherwise false. - overlaps(Collection<TimeInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if this
TimeIntervaloverlaps with any of the given intervals. - overlapsInterval(DateTemporal) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(DateTemporal)on a temporal it takes theDateTemporalas an input. - overlapsInterval(DateTemporal) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity overlaps with another temporal entity's interval.
- overlapsInterval(LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - overlapsInterval(LocalDate, LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity overlaps with the specified date range.
- overlapsInterval(Function<T, R>, DateTemporal) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(DateTemporal)on a temporal it takes theDateTemporalas an input. - overlapsInterval(Function<T, R>, LocalDate, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsInterval(LocalDate, LocalDate)on a temporal it takes theLocalDates as an input. - overlapsMonth(YearMonth) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsMonth(YearMonth)on a temporal it takes theYearMonthas an input. - overlapsMonth(YearMonth) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity overlaps with the specified month.
- overlapsMonth(Function<T, R>, YearMonth) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsMonth(YearMonth)on a temporal it takes theYearMonthas an input. - overlapsYear(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsYear(LocalDate)on a temporal it takes theLocalDateas an input. - overlapsYear(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity overlaps with the year of the specified date.
- overlapsYear(Year) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsYear(Year)on a temporal it takes theYearas an input. - overlapsYear(Year) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity overlaps with the specified year.
- overlapsYear(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsYear(LocalDate)on a temporal it takes theLocalDateas an input. - overlapsYear(Function<T, R>, Year) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.overlapsYear(Year)on a temporal it takes theYearas an input.
P
- Pair<S,
T> - Record Class in com.thanlinardos.spring_enterprise_library.tuple -
A tuple of things.
- Pair(S, T) - Constructor for record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Creates a new
Pairfor the given elements. - parseDate(String, Function<String, LocalDate>) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Parses a date string using the provided parser function.
- parseDateTime(String) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Parses a dateTime string using the default parser in
LocalDateTime.parse(CharSequence). - parseDateTime(String, Function<String, LocalDateTime>) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Parses an dateTime string using the provided parser function.
- parseInstant(String) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Parses an Instant string using the default parser in
Instant.parse(CharSequence). - parseInstant(String, Function<String, Instant>) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Parses an Instant string using the provided parser function.
- parseLocalDate(String) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Parses a date string into a LocalDate using the default parser from
LocalDate.parse(CharSequence). - ParserUtil - Class in com.thanlinardos.spring_enterprise_library.parse.utils
-
A utility class for safely parsing various data types from strings and objects.
- ParserUtil() - Constructor for class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
- partiallyOverlaps(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Checks if this
InstantIntervalpartially overlaps the given interval, meaning that they overlap but neither contains the other. - partiallyOverlaps(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Checks if this
Intervalpartially overlaps the given Interval, meaning they overlap but neither contains the other. - partiallyOverlaps(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Checks if this
TimeIntervalpartially overlaps the given interval, meaning that they overlap but neither contains the other. - password() - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Returns the value of the
passwordrecord component. - path() - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Returns the value of the
pathrecord component. - PredicateUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Util methods for using predicates in streams.
- PredicateUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
- prepareConnection(HttpURLConnection, String) - Method in class com.thanlinardos.spring_enterprise_library.https.SecureHttpRequestFactory
-
Prepares the given HttpURLConnection by configuring SSL settings if it's an instance of HttpsURLConnection.
R
- relativeComplement(Collection<InstantInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the list of the given intervals, excluding any elements equal to this InstantInterval
- relativeComplement(Collection<Interval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the list of the given intervals, excluding any elements equal to this interval.
- relativeComplement(Collection<TimeInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the list of the given intervals, excluding any elements equal to this interval
- removeAll(Collection<T>, Collection<T>, BiPredicate<T, T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Performs an operation equivalent to
Collection.removeAll(Collection), but with a custom predicate instead of using the equals method of<T>, and returns the result instead of performing the modification in-place. - removingDuplicates(Comparator<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
-
Removes duplicates in a stream based on a given
Comparator - requireNotEmpty(U) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Validates that the collection is not null or empty.
- retainAll(Collection<T>, Collection<T>, BiPredicate<T, T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Performs an operation equivalent to
Collection.retainAll(Collection), but with a custom predicate instead of using the equals method of<T>, and returns the result instead of performing the modification in-place. - rethrowWithEntityId(U, Function<U, R>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
-
Helper method to provide ids of entity input parameters in the resulting exception if the given function throws an exception
- reverse(List<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Returns a shallow copy of the given list with the elements in reverse order.
S
- safeParseBoolean(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to a Boolean.
- safeParseDouble(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to a Double.
- safeParseFloat(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to a Float.
- safeParseInteger(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to an Integer.
- safeParseListString(List<Object>) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a List of Objects to a List of Strings.
- safeParseLong(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to a Long.
- safeParseOffsetDateTime(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to an OffsetDateTime.
- safeParseOptionalUUID(Object) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely converts an Object to an Optional UUID.
- safeParseString(Object) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely converts an Object to a String.
- safeParseUUID(Object) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely converts an Object to a UUID.
- safeParseUUID(String) - Static method in class com.thanlinardos.spring_enterprise_library.parse.utils.ParserUtil
-
Safely parses a String to a UUID.
- second() - Method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Returns the value of the
secondrecord component. - SecureHttpRequestFactory - Class in com.thanlinardos.spring_enterprise_library.https
-
A custom HTTP request factory that configures SSL settings for HTTPS connections.
- SecureHttpRequestFactory(SSLContext) - Constructor for class com.thanlinardos.spring_enterprise_library.https.SecureHttpRequestFactory
-
Constructs a SecureHttpRequestFactory with the specified SSL context.
- sortAndMerge(BiPredicate<T, T>, BinaryOperator<R>, Function<T, R>, Comparator<T>, List<T>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Sorts the given
elementListand then merges its elements usingCollectionUtils.merge(BiPredicate, BinaryOperator, Function, List). - split(Collection<InstantInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a sorted list of intervals, covering the same Instants as the input, but without any intervals overlapping.
- split(Collection<Interval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a sorted list of intervals, covering the same days as the input, but without any intervals overlapping.
- split(Collection<TimeInterval>) - Static method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a sorted list of intervals, covering the same LocalDateTimes as the input, but without any intervals overlapping.
- SslContextUtil - Class in com.thanlinardos.spring_enterprise_library.https.utils
-
Utility class for building SSL contexts and REST clients with custom keystore and truststore configurations.
- SslContextUtil() - Constructor for class com.thanlinardos.spring_enterprise_library.https.utils.SslContextUtil
- start() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the value of the
startrecord component. - start() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the value of the
startrecord component. - start() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the value of the
startrecord component. - startsAfter(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsAfter(LocalDate)on a temporal it takes theLocalDateas an input. - startsAfter(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity starts after the specified date.
- startsAfter(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsAfter(LocalDate)on a temporal it takes theLocalDateas an input. - startsBefore(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsBefore(LocalDate)on a temporal it takes theLocalDateas an input. - startsBefore(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity starts before the specified date.
- startsBefore(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsBefore(LocalDate)on a temporal it takes theLocalDateas an input. - startsBeforeOrOn(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsBeforeOrOn(LocalDate)on a temporal it takes theLocalDateas an input. - startsBeforeOrOn(LocalDate) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.DateTemporal
-
Checks if the interval of this temporal entity starts before or on the specified date.
- startsBeforeOrOn(Function<T, R>, LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that checks the
DateTemporal.startsBeforeOrOn(LocalDate)on a temporal it takes theLocalDateas an input. - stream(Function<T, Collection<R>>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
- streamOptional(Function<T, Optional<R>>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.FunctionUtils
- StreamUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Utils for processing objects in streams.
- StreamUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.StreamUtils
- StringUtils - Class in com.thanlinardos.spring_enterprise_library.objects.utils
-
Utils for string and formatting operations.
- StringUtils() - Constructor for class com.thanlinardos.spring_enterprise_library.objects.utils.StringUtils
- subtract(InstantInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the remainder of this interval, after subtracting the overlap with the given interval.
- subtract(Interval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the remainder of this interval, after subtracting the overlap with the given interval.
- subtract(TimeInterval) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the remainder of this interval, after subtracting the overlap with the given interval
- subtract(Collection<InstantInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns the remainder of this InstantInterval, after subtracting the overlap with the given intervals.
- subtract(Collection<Interval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns the remainder of this interval, after subtracting the overlap with the given intervals.
- subtract(Collection<TimeInterval>) - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns the remainder of this interval, after subtracting the overlap with the given intervals
- subtractDay(LocalDate) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateUtils
-
Subtracts one day from the given date.
- subtractDefault(Instant, long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Adds the given amount of the default accuracy to the given instant.
- subtractDefault(Instant, long, TimeUnit) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Subtracts the given amount of the specified accuracy from the given instant.
- subtractDefault(LocalDateTime, long) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Subtracts the given amount of the accuracy configured in
TimeFactory.getAccuracy()from the given dateTime. - subtractDefault(LocalDateTime, long, TimeUnit) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Subtracts the given amount of the specified accuracy from the given dateTime.
- subtractSingle(Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Subtracts a single unit of the default accuracy from the given instant.
- subtractSingle(Instant, TimeUnit) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Subtracts a single unit of the specified accuracy from the given instant.
- subtractSingle(LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Subtracts a single unit of the accuracy configured in
TimeFactory.getAccuracy()from the given dateTime. - subtractSingle(LocalDateTime, TimeUnit) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Subtracts a single unit of the specified accuracy from the given dateTime.
T
- throwIfNot(Predicate<T>, ErrorCode, String, String...) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.PredicateUtils
-
Returns a predicate that always evaluate to true unless the input predicate is not satisfied.
- TimeConfig - Class in com.thanlinardos.spring_enterprise_library.config
-
Configuration class for time-related beans and components.
- TimeConfig() - Constructor for class com.thanlinardos.spring_enterprise_library.config.TimeConfig
-
Default constructor for TimeConfig.
- TimeConstants - Class in com.thanlinardos.spring_enterprise_library.time.constants
-
A utility class that provides constants and comparators for handling time-related operations.
- TimeFactory - Class in com.thanlinardos.spring_enterprise_library.time
-
Factory class for obtaining the current date and time, as well as time zone information.
- TimeFactory(TimeProvider) - Constructor for class com.thanlinardos.spring_enterprise_library.time.TimeFactory
-
Constructor for TimeFactory.
- timeFromNowPlusSeconds(long) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Creates a
TimeIntervalstarting from now plus the given seconds. - timeFromNowPlusSeconds(long) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- TimeInterval - Record Class in com.thanlinardos.spring_enterprise_library.time.model
-
Represents a time interval with a start and end date.
- TimeInterval(Interval) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs a
TimeIntervalfor the givenInterval. - TimeInterval(LocalDate) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalfor the givenLocalDate, where the interval will span the whole given day. - TimeInterval(LocalDate, LocalDate) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalfor the given start and endLocalDates. - TimeInterval(LocalDate, LocalDate, TimeUnit) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalfor the given start and endLocalDates and with the given accuracy. - TimeInterval(LocalDateTime, LocalDateTime) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an interval with the given start and end dates.
- TimeInterval(Year) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalfor the givenYear. - TimeInterval(YearMonth) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Constructs an
TimeIntervalfor the givenYearMonth. - timeProvider(TimeProviderProperties) - Method in class com.thanlinardos.spring_enterprise_library.config.TimeConfig
-
Creates a TimeProvider bean configured with properties from TimeProviderProperties.
- TimeProvider - Interface in com.thanlinardos.spring_enterprise_library.time.api
-
TimeProvider is an interface that provides methods to obtain the current date and time, the default
TimeUnitaccuracy to use, the time zone and over configured values that are used across the application when handling date and date-time data. - TimeProviderImpl - Record Class in com.thanlinardos.spring_enterprise_library.time
-
Default implementation of
TimeProviderinterface. - TimeProviderImpl(ZoneId, TimeUnit, LocalDate, LocalDate, LocalDateTime, LocalDateTime) - Constructor for record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Creates an instance of a
TimeProviderImplrecord class. - TimeProviderProperties - Class in com.thanlinardos.spring_enterprise_library.time.properties
-
Configuration properties for the TimeProvider.
- TimeProviderProperties() - Constructor for class com.thanlinardos.spring_enterprise_library.time.properties.TimeProviderProperties
-
Default constructor.
- toLocalDate(Instant) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.InstantUtils
-
Converts an Instant to a LocalDate in the default time zone.
- toLocalDate(LocalDateTime) - Static method in class com.thanlinardos.spring_enterprise_library.time.utils.DateTimeUtils
-
Converts a
LocalDateTimeto aLocalDatewith the default time zone. - toMap() - Static method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
- toMillis(LocalDateTime) - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Converts this LocalDateTime to the number of milliseconds from the epoch of 1970-01-01T00:00:00Z in the specified time-zone
- toMillis(LocalDateTime) - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.https.properties.KeyAndTrustStoreProperties
-
Returns a string representation of this record class.
- toString() - Method in class com.thanlinardos.spring_enterprise_library.math.UInt
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.InstantInterval
-
Returns a string representation of this record class.
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.Interval
-
Returns a string representation of this record class.
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.time.model.TimeInterval
-
Returns a string representation of this record class.
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns a string representation of this record class.
- toString() - Method in record class com.thanlinardos.spring_enterprise_library.tuple.Pair
-
Returns a string representation of this record class.
U
- UInt - Class in com.thanlinardos.spring_enterprise_library.math
-
Class representing an unsigned integer (UInt) with a range from 0 to 4294967295.
- UInt(long) - Constructor for class com.thanlinardos.spring_enterprise_library.math.UInt
-
Constructs a UInt with the specified value.
- UNEXPECTED_ERROR - Enum constant in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Error code indicating an unexpected error occurred.
V
- valueOf(String) - Static method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.thanlinardos.spring_enterprise_library.error.errorcodes.ErrorCode
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WithId - Interface in com.thanlinardos.spring_enterprise_library.model.api
-
Interface defining the getId method.
Z
- zipWith(BiFunction<T, S, R>, List<T>, List<S>) - Static method in class com.thanlinardos.spring_enterprise_library.objects.utils.CollectionUtils
-
Method that joins two lists by applying a two-argument function to corresponding elements in the lists and returning a list of the results.
- zoneId() - Method in interface com.thanlinardos.spring_enterprise_library.time.api.TimeProvider
-
Gets the time zone of the TimeProvider
- zoneId() - Method in record class com.thanlinardos.spring_enterprise_library.time.TimeProviderImpl
-
Returns the value of the
zoneIdrecord component.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form