Package ball.game.scrabble
Class Tile
- java.lang.Object
-
- ball.game.scrabble.Tile
-
public class Tile extends Object
ScrabbleTile.- Author:
- Allen D. Ball
-
-
Constructor Summary
Constructors Constructor Description Tile(char letter, int points)Sole constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetLetter()intgetPoints()booleanisBlank()StringtoString()static StringtoString(Collection<Tile> collection)
-
-
-
Field Detail
-
BLANK
public static final char BLANK
BLANK= 95- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tile
@ConstructorProperties({"letter","points"}) public Tile(char letter, int points)
Sole constructor.
-
-
Method Detail
-
getLetter
public char getLetter()
-
getPoints
public int getPoints()
-
isBlank
public boolean isBlank()
-
toString
public static String toString(Collection<Tile> collection)
- Parameters:
collection- TheCollectionofTiles.- Returns:
- The
Stringrepresentation.
-
-