Expectation object for time-based marker creation & packaging with it
Expected Interface realize object nonnull time-marker
public interface Expected<T extends TemporalAccessor> {
@NonNull T getTick();
default boolean happened(TemporalAccessor tick)...
Used to link object and time-marker. Implements Expected Interface
public interface ExpectedPackage<M,T extends TemporalAccessor> extends Expected<T> {
@NonNull M getElement(); // Packaged element
...
Construct package from element with time marker
@NonNull
static <M,T extends TemporalAccessor> ExpectedPackage<M,T> pack(@NonNull M element, @NonNull T tick)
...
Construct package from element with time marker from time-marker supplier
static <M,T extends TemporalAccessor> ExpectedPackage<M,T> supply(@NonNull M element, @NonNull TimeSupplier<T> tick)
...
Construct package from element with time marker extracted from element
static <M,T extends TemporalAccessor> ExpectedPackage<M,T> extract(@NonNull M element, @NonNull TimeExtractor<M,T> extractor) {
...
Copyright © 2017-2023 Andrey D. Shindarev. All rights reserved.