001package com.hfg.util.collection;
002
003
004import java.util.*;
005
006
007//------------------------------------------------------------------------------
008/**
009 A simple sparse matrix.
010 <div>
011  @author J. Alex Taylor, hairyfatguy.com
012 </div>
013 */
014//------------------------------------------------------------------------------
015// com.hfg Library
016//
017// This library is free software; you can redistribute it and/or
018// modify it under the terms of the GNU Lesser General Public
019// License as published by the Free Software Foundation; either
020// version 2.1 of the License, or (at your option) any later version.
021//
022// This library is distributed in the hope that it will be useful,
023// but WITHOUT ANY WARRANTY; without even the implied warranty of
024// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
025// Lesser General Public License for more details.
026//
027// You should have received a copy of the GNU Lesser General Public
028// License along with this library; if not, write to the Free Software
029// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
030//
031// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
032// jataylor@hairyfatguy.com
033//------------------------------------------------------------------------------
034
035public class SparseMatrix<RK extends Comparable, CK extends Comparable, V extends Comparable> extends AbstractSparseMatrix<RK, CK, V>
036{
037
038   //##########################################################################
039   // CONSTRUCTORS
040   //##########################################################################
041
042   //--------------------------------------------------------------------------
043   public SparseMatrix()
044   {
045      super();
046   }
047
048   //--------------------------------------------------------------------------
049   public SparseMatrix(int inInitialRowCapacity, int inInitialColCapacity)
050   {
051      super(inInitialRowCapacity, inInitialColCapacity);
052   }
053
054   //##########################################################################
055   // PUBLIC METHODS
056   //##########################################################################
057
058
059   //--------------------------------------------------------------------------
060   @Override
061   public SparseMatrix<RK, CK, V> clone()
062   {
063      return (SparseMatrix) super.clone();
064   }
065
066
067   //--------------------------------------------------------------------------
068   @Override
069   public Set<RK> rowKeySet()
070   {
071      return super.rowKeySet();
072   }
073
074   //--------------------------------------------------------------------------
075   @Override
076   public Set<CK> colKeySet()
077   {
078      return super.colKeySet();
079   }
080
081   //--------------------------------------------------------------------------
082   @Override
083   public Map<CK, V> getRow(RK inRowKey)
084   {
085      return super.getRow(inRowKey);
086   }
087
088   //--------------------------------------------------------------------------
089   @Override
090   public Map<RK, V> getCol(CK inColKey)
091   {
092      return super.getCol(inColKey);
093   }
094
095}