public class MapElement
{
    public static final char TREE = '#';
    public static final char OPEN = '.';
    
    public MapElement (Coordinate coord, char type)
    {
        _coord = coord;
        _type = type;
    }

    private Coordinate _coord;
    private char _type;
}
public class MapElement
{
    public static final char TREE = '#';
    public static final char OPEN = '.';
    
    public MapElement (Coordinate coord, char type)
    {
        _coord = coord;
        _type = type;
    }

    public final Coordinate position ()
    {
        return _coord;
    }

    public final char type ()
    {
        return _type;
    }

    private Coordinate _coord;
    private char _type;
}
Update MapElement.java