Class ItemFactory<T extends java.lang.Comparable>


  • public class ItemFactory<T extends java.lang.Comparable>
    extends java.lang.Object
    Implementation of a pool of items. Copyright Antonio Gomariz PeƱalver 2013 This file is part of the SPMF DATA MINING SOFTWARE (http://www.philippe-fournier-viger.com/spmf). SPMF is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SPMF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SPMF. If not, see .
    Author:
    agomariz
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Item getItem​(T key)
      Method which get an item from the pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ItemFactory

        public ItemFactory()
    • Method Detail

      • getItem

        public Item getItem​(T key)
        Method which get an item from the pool. If such item does not exist, a new item is created
        Parameters:
        key - the key to obtain the item
        Returns:
        the corresponding Item object in the pool or a new one