See http://docstore.mik.ua/orelly/java-ent/jnut/ch03_12.htm

On Sat, Sep 22, 2012 at 10:56 PM, Satendra Tiwari
<[email protected]>wrote:

> DataModelBuilder modelBuilder = new DataModelBuilder() {
>  public DataModel buildDataModel(FastByIDMap<PreferenceArray> trainingData)
> {
>   return new
>
> GenericBooleanPrefDataModel(GenericBooleanPrefDataModel.toDataMap(trainingData));
>  }
> }
>
> I had never seen anything like this in Java, where we define and declare
> the construtor at the same time, so here is buildDataodel getting called or
> defined, what exactly is happening?
>
> Sorry, I am new to mahout so asking very basic questions
>

Reply via email to