public static final class FeatureStateManager.Change extends Object implements AutoCloseable
One instance of this class represents an atomic feature state change operation that will result in exactly 1 FeatureStateEvent
.
See FeatureStateManager
for a usage example.
Modifier and Type | Method and Description |
---|---|
void |
clearState(FeatureState featureState)
Clear the given feature state.
|
void |
close() |
static FeatureStateManager.Change |
create()
Returns a new, empty,
FeatureStateManager.Change . |
protected void |
finalize() |
void |
setState(LayerFeatureId layerFeatureId,
FeatureState featureState,
boolean enabled)
Sets the given state for the given feature identifier.
|
public void close()
close
in interface AutoCloseable
@NotNull public static FeatureStateManager.Change create()
FeatureStateManager.Change
.FeatureStateManager.Change
.public void setState(@NotNull LayerFeatureId layerFeatureId, @NotNull FeatureState featureState, boolean enabled)
layerFeatureId
- the feature for which to modify the statefeatureState
- the feature state to modifyenabled
- true to enable the feature state, and false to disable itpublic void clearState(@NotNull FeatureState featureState)
As a result, no single feature will have the given feature state enabled.
featureState
- the feature state to clear