net.sf.magicproject.chart
Class CardTypes

java.lang.Object
  extended by net.sf.magicproject.chart.CardTypes
All Implemented Interfaces:
java.lang.Comparable<IChartKey>, IChartKey

public class CardTypes
extends java.lang.Object
implements IChartKey

Since:
0.93
Author:
Fabrice Daugan

Field Summary
static IChartKey UNKNOW_TYPE
           
 
Constructor Summary
CardTypes(java.lang.String typeName, int typeValue)
          Create a new instance of this class.
 
Method Summary
 int compareTo(IChartKey o)
           
 IChartKey getDefault()
           
 int getIntegerKey()
          Return the integer key.
 void processAdd(java.util.List<IChartKey> workingKeys)
          Add this key to the specified list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOW_TYPE

public static final IChartKey UNKNOW_TYPE
Constructor Detail

CardTypes

public CardTypes(java.lang.String typeName,
                 int typeValue)
Create a new instance of this class.

Parameters:
typeName -
typeValue -
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface IChartKey
Overrides:
toString in class java.lang.Object

getDefault

public IChartKey getDefault()
Specified by:
getDefault in interface IChartKey
Returns:
the default value of this key type.

compareTo

public int compareTo(IChartKey o)
Specified by:
compareTo in interface java.lang.Comparable<IChartKey>

getIntegerKey

public int getIntegerKey()
Description copied from interface: IChartKey
Return the integer key.

Specified by:
getIntegerKey in interface IChartKey
Returns:
the integer key.

processAdd

public void processAdd(java.util.List<IChartKey> workingKeys)
Description copied from interface: IChartKey
Add this key to the specified list.

Specified by:
processAdd in interface IChartKey
Parameters:
workingKeys - the current key list.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.