Code example for Deque

Methods: size

0
		secondaryDirection = Direction.NONE;
	} 
	 
	public boolean moving() 
	{ 
		return waypoints.size() > 0;
	} 
	 
	public void setPath(Deque<MovementPoint> path)
	{ 
		waypoints = path;
	} 
	 
	public boolean updateRequired() 
	{ 
		return primaryDirection != Direction.NONE;
	} 
	 
	public Direction primaryDirection() 
	{ 
		return primaryDirection;