DefaultPriceIndexFactory Class

This is the default implementation of PriceIndexFactory. For maximum efficiency, this implementation maintains a list of all provided values so that the getPriceIndex() methods returns as quickly as possible.

Definition

Namespace: com.ftlabs.fisa
Assembly: FISA.NET (in FISA.NET.dll) Version: 1.16.0.13 (1.16.0.13)
C#
public class DefaultPriceIndexFactory : PriceIndexFactory
Inheritance
Object    DefaultPriceIndexFactory
Implements
PriceIndexFactory

Constructors

DefaultPriceIndexFactory Creates a new instance of DefaultPriceIndexFactory without any price index values.
DefaultPriceIndexFactory(String) Creates a new instance of DefaultPriceIndexFactory populated with data contained in the provided file.
DefaultPriceIndexFactory(TextReader) Creates a new instance of DefaultPriceIndexFactory populated with dates and price index values provided by a TextReader.

Methods

addPriceIndex(FISADate, Double) Add a price index for the provided date.
addPriceIndex(Int32, Int32, Double) Add a price index for a given year and month.
clearClear all price index values.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
getPriceIndex(FISADate) This method returns the price index for the given Date.
getPriceIndex(FISADate, Int32) This method returns the price index for the given month offset from the given date.
getPriceIndex(Int32, Int32) This method returns the price index for the given year and month.
getPriceIndex(Int32, Int32, Int32) This method returns the price index for the given month offset from year and month.
GetTypeGets the Type of the current instance.
(Inherited from Object)
loadPriceIndices Adds price index data provided by a TextReader to this DefaultPriceIndexFactory.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also