RefreshHelper ClassNReco.Recommender Class Library
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

System Object
  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

public sealed class RefreshHelper : IRefreshable

The RefreshHelper type exposes the following members.

Constructors

  NameDescription
Public methodRefreshHelper
Initializes a new instance of the RefreshHelper class
Top
Methods

  NameDescription
Public methodAddDependency
Add a dependency to be refreshed first when the encapsulating object does.
Public methodStatic memberBuildRefreshed
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMaybeRefresh
Adds the specified {@link Refreshable} to the given collection of {@link Refreshable}s if it is not already there and immediately refreshes it.
Public methodRefresh
Typically this is called in {@link Refreshable#refresh(java.util.Collection)} and is the entire body of that method.
Public methodRemoveDependency
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also