| Modifier and Type | Method and Description |
|---|---|
| public default < representation of a change C> UndoManager | createMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<List<C>> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a list of changes. apply)list describes a list of actions to be performed.
Calling apply.accept(list) must cause list to be emitted from
the changeStream.Creates an |
| public default < representation of a change C> UndoManager | createMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<List<C>> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a list of changes. apply, BiFunction<C, C, Optional<C>> list describes a list of actions to be performed.
Calling apply.accept(list) must cause list to be emitted from
the changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged. merge)Creates an |
| public default < representation of a change C> UndoManager | createMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<List<C>> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a list of changes. apply, BiFunction<C, C, Optional<C>> list describes a list of actions to be performed.
Calling apply.accept(list) must cause list to be emitted from
the changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged.
If two changes "annihilate" (i.e. merge, Predicate<C> merge.apply(c1, c2).isPresen() and
isIdentity.test(merge.apply(c1, c2).get()) are both true), it should
be the case that one is inverse of the other (invert.apply(c1).equals(c2)).returns true for changes whose application would have no effect, thereby equivalent
to an identity function ( isIdentity)Function#identity()) on the underlying model.Creates an |
| public < representation of a change C> UndoManager | createMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<List<C>> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a list of changes. apply, BiFunction<C, C, Optional<C>> list describes a list of actions to be performed.
Calling apply.accept(list) must cause list to be emitted from
the changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged.
If two changes "annihilate" (i.e. merge, Predicate<C> merge.apply(c1, c2).isPresen() and
isIdentity.test(merge.apply(c1, c2).get()) are both true), it should
be the case that one is inverse of the other (invert.apply(c1).equals(c2)).returns true for changes whose application would have no effect, thereby equivalent
to an identity function ( isIdentity, Duration Function#identity()) on the underlying model.the amount by which to wait before calling preventMergeDelay)UndoManager#preventMerge().
Helpful when one wants to prevent merges after a period of inactivity (the
changeStream doesn't emit an event after the given duration). Passing in
a negative or zero duration will never call UndoManager#preventMerge().Creates an |
| public default < representation of a change C> UndoManager | createSingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<C> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a change. From the point of view of apply)apply, C
describes an action to be performed. Calling apply.accept(c)
must cause c to be emitted from changeStream.Creates an |
| public default < representation of a change C> UndoManager | createSingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<C> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a change. From the point of view of apply, BiFunction<C, C, Optional<C>> apply, C
describes an action to be performed. Calling apply.accept(c)
must cause c to be emitted from changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged. merge)Creates an |
| public default < representation of a change C> UndoManager | createSingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<C> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a change. From the point of view of apply, BiFunction<C, C, Optional<C>> apply, C
describes an action to be performed. Calling apply.accept(c)
must cause c to be emitted from changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged.
If two changes "annihilate" (i.e. merge, Predicate<C> merge.apply(c1, c2).isPresen() and
isIdentity.test(merge.apply(c1, c2).get()) are both true), it should
be the case that one is inverse of the other (invert.apply(c1).equals(c2)).returns true for changes whose application would have no effect, thereby equivalent
to an identity function ( isIdentity)Function#identity()) on the underlying model.Creates an |
| public < representation of a change C> UndoManager | createSingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C>
Inverts a change, so that applying the inverted change ( invert, Consumer<C> apply.accept(invert.apply(c)))
has the effect of undoing the original change (c). Inverting a change twice should
result in the original change (invert.apply(invert.apply(c)).equals(c)).Used to apply a change. From the point of view of apply, BiFunction<C, C, Optional<C>> apply, C
describes an action to be performed. Calling apply.accept(c)
must cause c to be emitted from changeStream.Used to merge two subsequent changes into one.
Returns an empty Optional when the changes cannot or should not be merged.
If two changes "annihilate" (i.e. merge, Predicate<C> merge.apply(c1, c2).isPresen() and
isIdentity.test(merge.apply(c1, c2).get()) are both true), it should
be the case that one is inverse of the other (invert.apply(c1).equals(c2)).returns true for changes whose application would have no effect, thereby equivalent
to an identity function ( isIdentity, Duration Function#identity()) on the underlying model.the amount by which to wait before calling preventMergeDelay)UndoManager#preventMerge().
Helpful when one wants to prevent merges after a period of inactivity (the
changeStream doesn't emit an event after the given duration). Passing in
a negative or zero duration will never call UndoManager#preventMerge().Creates an |
| public static UndoManagerFactory | |
| public static <C> UndoManager | fixedSizeHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static <C> UndoManager | fixedSizeHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, BiFunction<C, C, Optional<C>> merge, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static <C> UndoManager | fixedSizeHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity, Duration preventMergeDelay, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static <C> UndoManager | fixedSizeHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static <C> UndoManager | fixedSizeHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, BiFunction<C, C, Optional<C>> merge, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static <C> UndoManager | fixedSizeHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity, Duration preventMergeDelay, int
maximum number of changes the returned UndoManager can store capacity)Creates an |
| public static UndoManagerFactory | |
| public static <C> UndoManager | unlimitedHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply)
Creates an |
| public static <C> UndoManager | unlimitedHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, BiFunction<C, C, Optional<C>> merge)
Creates an |
| public static <C> UndoManager | unlimitedHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity)
Creates an |
| public static <C> UndoManager | unlimitedHistoryMultiChangeUM(EventStream<List<C>> changeStream, Function<? super C, ? extends C> invert, Consumer<List<C>> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity, Duration preventMergeDelay)
Creates an |
| public static <C> UndoManager | unlimitedHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply)
Creates an |
| public static <C> UndoManager | unlimitedHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, BiFunction<C, C, Optional<C>> merge)
Creates an |
| public static <C> UndoManager | unlimitedHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity)
Creates an |
| public static <C> UndoManager | unlimitedHistorySingleChangeUM(EventStream<C> changeStream, Function<? super C, ? extends C> invert, Consumer<C> apply, BiFunction<C, C, Optional<C>> merge, Predicate<C> isIdentity, Duration preventMergeDelay)
Creates an |
| public static UndoManagerFactory | |
| public static <C> UndoManager | zeroHistoryMultiChangeUM(EventStream<List<C>> changeStream)
Creates an |
| public static <C> UndoManager | zeroHistorySingleChangeUM(EventStream<C> changeStream)
Creates an |
| createMultiChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createMultiChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createMultiChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createMultiChangeUM | back to summary |
|---|---|
| public <C> UndoManager Creates an
| |
| createSingleChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createSingleChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createSingleChangeUM | back to summary |
|---|---|
| public default <C> UndoManager Creates an
| |
| createSingleChangeUM | back to summary |
|---|---|
| public <C> UndoManager Creates an
| |
| fixedSizeHistoryFactory | back to summary |
|---|---|
| public static UndoManagerFactory fixedSizeHistoryFactory(int capacity) Creates a factory for | |
| fixedSizeHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| fixedSizeHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| fixedSizeHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| fixedSizeHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| fixedSizeHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| fixedSizeHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an For description of the remaining parameters, see
| |
| unlimitedHistoryFactory | back to summary |
|---|---|
| public static UndoManagerFactory unlimitedHistoryFactory() Creates a factory for | |
| unlimitedHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| unlimitedHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| zeroHistoryFactory | back to summary |
|---|---|
| public static UndoManagerFactory zeroHistoryFactory() Creates a factory for | |
| zeroHistoryMultiChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |
| zeroHistorySingleChangeUM | back to summary |
|---|---|
| public static <C> UndoManager Creates an | |