public class CountryElement
extends java.lang.Object
It contains a country, a value (for use in ordering the stack), and a reference to the next element.
Constructor and Description |
---|
CountryElement() |
CountryElement(Country country,
int newValue) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
CountryElement |
getNext() |
int |
getValue() |
void |
setNext(CountryElement newElement) |
int |
size() |
public CountryElement()
public CountryElement(Country country, int newValue)
public int getCode()
public CountryElement getNext()
public int getValue()
public void setNext(CountryElement newElement)
public int size()