A helper class for implementing IRefreshable. This object is typically included in an implementation
IRefreshable to implement Refresh(IList IRefreshable ).
It execute the class's own supplied update logic, after updating all the object's dependencies. This also ensures that dependencies
are not updated multiple times.
Inheritance Hierarchy
NReco.CF.Taste.Impl.Common RefreshHelper
Namespace: NReco.CF.Taste.Impl.Common
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The RefreshHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RefreshHelper | Initializes a new instance of the RefreshHelper class |
Methods
Name | Description | |
---|---|---|
AddDependency | Add a dependency to be refreshed first when the encapsulating object does. | |
BuildRefreshed | ||
Equals | (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MaybeRefresh |
Adds the specified {@link Refreshable} to the given collection of {@link Refreshable}s if it is not
already there and immediately refreshes it.
| |
Refresh |
Typically this is called in {@link Refreshable#refresh(java.util.Collection)} and is the entire body of that method.
| |
RemoveDependency | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also