@TestClass(value="org.openscience.cdk.io.cml.CMLStackTest") public class CMLModuleStack extends Object
Constructor and Description |
---|
CMLModuleStack() |
Modifier and Type | Method and Description |
---|---|
ICMLModule |
current()
Returns the last added entry.
|
boolean |
endsWith(ICMLModule lastElement)
Convenience method to check the last added elements.
|
boolean |
endsWith(ICMLModule oneButLast,
ICMLModule lastElement)
Convenience method to check the last two added elements.
|
boolean |
endsWith(ICMLModule twoButLast,
ICMLModule oneButLast,
ICMLModule lastElement)
Convenience method to check the last three added elements.
|
int |
length() |
ICMLModule |
pop()
Retrieves and deletes to last added entry.
|
void |
push(ICMLModule item)
Adds an entry to the stack.
|
String |
toString()
Returns a String representation of the stack.
|
@TestMethod(value="testPush_String") public void push(ICMLModule item)
public int length()
@TestMethod(value="testPop") public ICMLModule pop()
current()
@TestMethod(value="testCurrent") public ICMLModule current()
pop()
public String toString()
@TestMethod(value="testEndsWith_String") public boolean endsWith(ICMLModule lastElement)
@TestMethod(value="testEndsWith_String_String") public boolean endsWith(ICMLModule oneButLast, ICMLModule lastElement)
@TestMethod(value="testEndsWith_String_String_String") public boolean endsWith(ICMLModule twoButLast, ICMLModule oneButLast, ICMLModule lastElement)
Copyright © 2014. All Rights Reserved.