Back to project page BehatReporter.
The source code is released under:
Copyright (C) 2013 Fabian Kiss <headrevision@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
If you think the Android project BehatReporter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package headrevision.BehatReporter.store; /*w w w .j a v a2s . com*/ import java.util.Stack; public class ItemTitles { private static ItemTitles instance; private Stack<String> titles; private ItemTitles() { titles = new Stack<String>(); } public static ItemTitles getInstance() { if (instance == null) { instance = new ItemTitles(); } return instance; } public void push(String title) { titles.push(title); } public String pop() { return titles.pop(); } public String clear() { String title = titles.firstElement(); titles.removeAllElements(); return title; } }