ResourceDescriptionT
- type of resource this action cleans (usually, an instance
of Class
, String
, Enum
),@FunctionalInterface
public interface CleanAction<ResourceDescriptionT>
Modifier and Type | Method and Description |
---|---|
void |
clean()
A clean operation to perform.
|
static <ResourceDescriptionT> |
from(java.lang.Runnable action,
ResourceDescriptionT resourceType)
Creates a clean action with a given type.
|
default java.util.Optional<ResourceDescriptionT> |
resourceType()
Returns the description of the type of resource this action corresponds to.
|
void clean()
default java.util.Optional<ResourceDescriptionT> resourceType()
static <ResourceDescriptionT> CleanAction<ResourceDescriptionT> from(java.lang.Runnable action, ResourceDescriptionT resourceType)
ResourceDescriptionT
- a type of the resource descriptionaction
- a clean operationresourceType
- a description of the resource (its class, textual description, etc.)Copyright © 2018 Exonum. All rights reserved.