Best code examples for Java 8 Vector class (java.util.Vector)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Vector class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 Vector examples from Open Source projects
This code example shows how to use the following methods: size
42:	return currentStack.get().get(currentStack.get().size()-2); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods:
148:	private final List<MyThread> _threads = new Vector<MyThread>(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods:
22:	private List<ScenarioAction> actionList = new Vector<ScenarioAction>(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: peek, size
127:	if (this.fStack.size() > 0) { 
128:	DOMNode parent = (DOMNode) this.fStack.peek(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: peek, pop, push, size
77:	int x = testStack.size(); 
78:	Object item = testStack.peek(); 
79:	assertTrue(testStack.pop() == item); 
80:	assertEquals(x - 1, testStack.size()); 
-
142:	Stack<String> stack = new Stack<String>(); 
143:	stack.push("1"); 
144:	stack.push("2"); 
145:	stack.push("3"); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: add
21:	List<GrammarRule> rules = new Vector<GrammarRule>(); 
22:	rules.add(rule); 
23:	rules.add(rule1); 
-
25:	Grammar gr1 = new Grammar(rules, nonterminal); 
-
30:	assertTrue(gr.allRules().containsAll(rules)); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
45:	_messages = new Vector<Object>(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: size
141:	String retval[] = new String[names.size()]; 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: size
39:	if (currentStack.get().size() < 2) { 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: pop, add
21:	Stack<String> _stack = new Stack<String>(); 
-
23:	stack.add("something"); 
24:	String _pop = stack.pop(); 
-
28:	+ "\n     stack is " + new org.hamcrest.StringDescription().appendValue(stack).toString() + "\n", _doubleArrow); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: size, empty, peek, get
174:	if( m_screenStack.empty( ) ) 
-
181:	if( m_screenStack.size( ) >= 2 ) 
-
184:	poppedToScreenHandle = m_screenStack.get(m_screenStack.size()-2).getHandle(); 
-
189:	m_screenStack.peek( ).getHandle( ), 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: pop, size
175:	callStack.pop(); 
176:	boolean unwound = (callStack.size() == 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: pop, isEmpty
36:	final Stack<InputSource> inputSources = new Stack<InputSource>(); 
-
38:	OsgiUtils.executeCallback(new OsgiUtils.OsgiServiceCallback() { 
-
54:	if (!inputSources.isEmpty()) { 
55:	return inputSources.pop(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: add, size
249:	mMessages.add(consoleMessage); 
-
280:	return mMessages.size(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: capacity, trimToSize
69:	frames.trimToSize(); 
70:	mNumFrames = frames.capacity(); 
-
74:	Stack<IAnimationFrame> f = new Stack<IAnimationFrame>(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
103:	_messages = new Vector<Object>(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: peek, size
128:	if (this.fStack.size() > 0) { 
129:	DOMNode parent= (DOMNode)this.fStack.peek(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: pop, isEmpty
154:	foo.pop(); 
-
156:	if (foo.isEmpty()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: peek, isEmpty
257:	if(!activityStack.isEmpty()){ 
258:	activity=activityStack.peek().get(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: size
This code example shows how to use the following methods:
28:	terms = new Vector(); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: size
39:	if(currentStack.get().size() < 2) { 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: size
82:	return mFiles != null ? mFiles.size() : 0; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: peek, size
40:	return size() > 0 ? stack.peek() : 0; 
-
44:	return stack.size(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: size
66:	return fUndo.size(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
34:	Vector _elements = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: size
67:	return fUndo.size(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
54:	listeners = new Vector<HTMLResultsListener>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
200:	return new Vector<String>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
18:	private Vector extOrdering = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
57:	private final Vector<String> debugText = new Vector<String>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
36:	mParts = new Vector<PduPart>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
106:	_imageQueue = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
251:	mStates = new Vector<State>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
36:	subscriptions = new Vector<CNSSubscriptionTest>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
35:	data = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
176:	private Vector                  ordering = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
28:	terms = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
20:	private Vector extOrdering = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
32:	this(new Hashtable(), new Vector()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
34:	private Vector<String> queryBuffer = new Vector<String>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
142:	public Vector<Scanner> scanners = new Vector<Scanner>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
347:	private Vector                  ordering = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
12:	private Vector<Step> steps = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
76:	final private Vector<EntryEdit> vector = new Vector<EntryEdit> (); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
17:	private Vector<Pipeline> pipelines = new Vector<Pipeline>(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
10:	private Vector<Script> scripts = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
51:	freeStack = new Vector(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
105:	private Vector listeners = new Vector (); 
Full Snippet Info
8
CodeRank
Related Java 8 Vector Questions & Answers:
See Code Examples for Java 8 Vector Methods: