net.sf.magicproject.chart
Class CardTypes
java.lang.Object
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
|
Constructor Summary |
CardTypes(java.lang.String typeName,
int typeValue)
Create a new instance of this class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOW_TYPE
public static final IChartKey UNKNOW_TYPE
CardTypes
public CardTypes(java.lang.String typeName,
int typeValue)
- Create a new instance of this class.
- Parameters:
typeName - typeValue -
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.