net.sf.magicproject.chart
Class CardManaCost

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

public class CardManaCost
extends java.lang.Object
implements IChartKey

Since:
0.93
Author:
Fabrice Daugan

Field Summary
static IChartKey UNKNOW_MANACOST
           
 
Constructor Summary
CardManaCost(int amount)
          Create a new instance of this class.
 
Method Summary
 int compareTo(IChartKey o)
           
 boolean equals(java.lang.Object other)
           
 IChartKey getDefault()
           
 int getIntegerKey()
          Return the integer key.
 int hashCode()
           
 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
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOW_MANACOST

public static final IChartKey UNKNOW_MANACOST
Constructor Detail

CardManaCost

public CardManaCost(int amount)
Create a new instance of this class.

Parameters:
amount - mana cost amount.
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.

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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.