public abstract static class ValueFilter.Abstract extends Object implements ValueFilter
ValueFilter.Abstract| Modifier and Type | Field and Description |
|---|---|
protected static PointValue[] |
NO_POINT_VALUES
No point values.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Abstract(Optional<ElapsedTime> timeLimit,
Optional<ElapsedTime> stampTrimUnit)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Optional<PointValue> |
doFilter(PointValue pointValue)
Says if a value should be filtered.
|
PointValue[] |
filter(Optional<PointValue> optionalPointValue)
Filters a point value.
|
protected Optional<PointValue> |
getHeldPointValue()
Gets the held point value.
|
protected Optional<PointValue> |
getPreviousPointValue()
Gets the previous point value.
|
protected Optional<ElapsedTime> |
getTimeLimit()
Gets the time limit.
|
boolean |
isDisabled()
Gets the disabled indicator.
|
protected PointValue[] |
pointValues(PointValue... pointValues)
Returns the point values into an array.
|
void |
reset()
Resets.
|
protected void |
setDisabled(boolean disabled)
Sets the disabled indicator.
|
protected void |
setHeldPointValue(PointValue heldPointValue)
Sets the held point value.
|
protected void |
setPreviousPointValue(PointValue previousValue)
Sets the previous point value.
|
protected PointValue |
snap(PointValue pointValue)
Snaps the point value.
|
String |
toString() |
protected static final PointValue[] NO_POINT_VALUES
protected Abstract(@Nonnull
Optional<ElapsedTime> timeLimit,
@Nonnull
Optional<ElapsedTime> stampTrimUnit)
timeLimit - The optional time limit.stampTrimUnit - The optional stamp trim unit.public final PointValue[] filter(Optional<PointValue> optionalPointValue)
When a value filter needs to return a modified point value, if the supplied one is frozen, it will return a frozen but modified clone; otherwise, it will return the original with the needed modifications but frozen.
filter in interface ValueFilteroptionalPointValue - The optional point value.public final boolean isDisabled()
isDisabled in interface ValueFilterpublic void reset()
reset in interface ValueFilterpublic String toString()
toString in class Object@Nonnull @CheckReturnValue protected abstract Optional<PointValue> doFilter(@Nonnull PointValue pointValue)
pointValue - The point value.@Nonnull @CheckReturnValue protected final Optional<PointValue> getHeldPointValue()
@Nonnull @CheckReturnValue protected final Optional<PointValue> getPreviousPointValue()
@Nonnull @CheckReturnValue protected final Optional<ElapsedTime> getTimeLimit()
@Nonnull @CheckReturnValue protected PointValue[] pointValues(PointValue... pointValues)
pointValues - The point values.protected final void setDisabled(boolean disabled)
disabled - The disabled indicator.protected final void setHeldPointValue(@Nonnull
PointValue heldPointValue)
heldPointValue - The held point value.protected final void setPreviousPointValue(@Nonnull
PointValue previousValue)
previousValue - The previous value.@Nonnull @CheckReturnValue protected PointValue snap(@Nonnull PointValue pointValue)
pointValue - The point value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.