/** * Creates a {@code DeltaEvictor} from the given threshold, {@code DeltaFunction}. * Eviction is done before/after the window function based on the value of doEvictAfter. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} * @param doEvictAfter Whether eviction should be done after window function */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction, boolean doEvictAfter) { return new DeltaEvictor<>(threshold, deltaFunction, doEvictAfter); } }
/** * Creates a {@code DeltaEvictor} from the given threshold and {@code DeltaFunction}. * Eviction is done before the window function. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction) { return new DeltaEvictor<>(threshold, deltaFunction); }
/** * Creates a {@code DeltaEvictor} from the given threshold, {@code DeltaFunction}. * Eviction is done before/after the window function based on the value of doEvictAfter. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} * @param doEvictAfter Whether eviction should be done after window function */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction, boolean doEvictAfter) { return new DeltaEvictor<>(threshold, deltaFunction, doEvictAfter); } }
/** * Creates a {@code DeltaEvictor} from the given threshold and {@code DeltaFunction}. * Eviction is done before the window function. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction) { return new DeltaEvictor<>(threshold, deltaFunction); }
/** * Creates a {@code DeltaEvictor} from the given threshold and {@code DeltaFunction}. * Eviction is done before the window function. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction) { return new DeltaEvictor<>(threshold, deltaFunction); }
/** * Creates a {@code DeltaEvictor} from the given threshold, {@code DeltaFunction}. * Eviction is done before/after the window function based on the value of doEvictAfter. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} * @param doEvictAfter Whether eviction should be done after window function */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction, boolean doEvictAfter) { return new DeltaEvictor<>(threshold, deltaFunction, doEvictAfter); } }
/** * Creates a {@code DeltaEvictor} from the given threshold, {@code DeltaFunction}. * Eviction is done before/after the window function based on the value of doEvictAfter. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} * @param doEvictAfter Whether eviction should be done after window function */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction, boolean doEvictAfter) { return new DeltaEvictor<>(threshold, deltaFunction, doEvictAfter); } }
/** * Creates a {@code DeltaEvictor} from the given threshold and {@code DeltaFunction}. * Eviction is done before the window function. * * @param threshold The threshold * @param deltaFunction The {@code DeltaFunction} */ public static <T, W extends Window> DeltaEvictor<T, W> of(double threshold, DeltaFunction<T> deltaFunction) { return new DeltaEvictor<>(threshold, deltaFunction); }