blob: 2c8f950e3420c63ccd06fed8db0754a71a256ca4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package eu.equalparts.cardbase.data;
import java.util.ArrayList;
public class CardSet {
public String name;
public String code;
public String releaseDate;
public String border;
public String type;
public String block;
public String gathererCode;
public ArrayList<Card> cards;
/**
* Searches for a card by number (the one shown on the card itself).
*
* @param number the number of the card to search.
* @return the card, or null if no card is found with that number.
*/
public Card getCardByNumber(String number) {
for (Card card : cards) {
if (card.number.equals(number))
return card;
}
return null;
}
}
|