public class AmoebaPlaced extends java.lang.Object implements java.lang.Comparable<AmoebaPlaced>
Constructor and Description |
---|
AmoebaPlaced(Coord position,
Shape amoeba)
AmoebaPlaced constructor with two parameter positon and shape
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AmoebaPlaced other)
compareTo will help us to sort a list of AmoebaPlaced objects.
|
Shape |
getAmoeba()
getAmoeba takes the shape from this object
|
java.lang.String |
toString()
toString will return the string representatopn of the AmoebaPlaced
|
public java.lang.String toString()
toString
in class java.lang.Object
public Shape getAmoeba()
public int compareTo(AmoebaPlaced other)
compareTo
in interface java.lang.Comparable<AmoebaPlaced>