Code example for Stack

Methods: add

0
		p.endRecording();
		return p;
	} 
	 
	public void addPath(Path path){
		mPathList.add(new Path(path));
	} 
	 
	public void addRectangle(Rect rect) {
	    Path path = new Path();
	    RectF rectf = new RectF(rect);
	    path.addRect(rectf, Path.Direction.CW);
	} 
	 
	public Path removeLast(){
		return mPathList.pop();
	} 
}