本文整理了Java中java.util.Vector.lastElement()
方法的一些代码示例,展示了Vector.lastElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.lastElement()
方法的具体详情如下:
包路径:java.util.Vector
类名称:Vector
方法名:lastElement
[英]Returns the last element in this vector.
[中]返回此向量中的最后一个元素。
代码示例来源:origin: xalan/xalan
/**
* Returns this element's last child
* @return The child node.
*/
protected final SyntaxTreeNode lastChild() {
if (_contents.size() == 0) return null;
return (SyntaxTreeNode)_contents.lastElement();
}
代码示例来源:origin: marytts/marytts
/**
* getter for end time of tier. Assumes that intervals are in sequence
*
* @return end time of tier as double
*/
public double getXmax() {
try {
return this.intervals.lastElement().getXmax();
} catch (NoSuchElementException nsu) {
return this.xmax;
}
}
代码示例来源:origin: marytts/marytts
/**
* getter for end time of tier. Assumes that intervals are in sequence
*
* @return end time of tier as double
*/
public double getXmax() {
try {
return this.intervals.lastElement().getXmax();
} catch (NoSuchElementException nsu) {
return this.xmax;
}
}
代码示例来源:origin: xalan/xalan
if (_separLast) buffer.append((String)_separToks.lastElement());
return buffer.toString();
代码示例来源:origin: xalan/xalan
tHFrom.setResult(new SAXResult(tHTo));
TransformerHandler tHLast = (TransformerHandler)vTHandler.lastElement();
Transformer trans = tHLast.getTransformer();
Properties outputProps = trans.getOutputProperties();
代码示例来源:origin: org.apache.ant/ant
+ passedTokens.toString() + "\nProblem token : " + beginToken
+ parent + endToken + " called from " + beginToken
+ passedTokens.lastElement() + endToken);
recurseDepth--;
return parent;
代码示例来源:origin: postgresql/postgresql
PgArrayList p = ((PgArrayList) dims.lastElement());
p.add(a);
dims.add(a);
curArray = (PgArrayList) dims.lastElement();
curArray = (PgArrayList) dims.lastElement();
代码示例来源:origin: xalan/xalan
currentRule = (WhitespaceRule)rules.lastElement();
if (currentRule.getAction() == defaultAction) {
rules.removeElementAt(rules.size() - 1);
代码示例来源:origin: apache/groovy
protected Object createNode(final Object name, final Map attributes) {
final Attributes attrs = buildAttributes(attributes);
String tagName = name.toString();
String ns = "";
if (name instanceof QName) {
QName q = (QName) name;
tagName = q.getLocalPart();
ns = q.getNamespaceURI();
}
// import can be used only as top level element
if ("import".equals(name)) {
antXmlContext.setCurrentTarget(implicitTarget);
} else if ("target".equals(name) && !insideTask) {
return onStartTarget(attrs, tagName, ns);
} else if ("defineTarget".equals(name) && !insideTask) {
return onDefineTarget(attrs, "target", ns);
}
try {
antElementHandler.onStartElement(ns, tagName, tagName, attrs, antXmlContext);
}
catch (final SAXParseException e) {
log.log(Level.SEVERE, "Caught: " + e, e);
}
insideTask = true;
final RuntimeConfigurable wrapper = antXmlContext.getWrapperStack().lastElement();
return wrapper.getProxy();
}
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: pentaho/pentaho-kettle
if ( ( token == WHITE ) && ( !styles.isEmpty() ) ) {
int start = scanner.getStartOffset() + event.lineOffset;
lastStyle = styles.lastElement();
if ( lastStyle.fontStyle != SWT.NORMAL ) {
if ( lastStyle.start + lastStyle.length == start ) {
styles.addElement( style );
} else {
lastStyle = styles.lastElement();
if ( lastStyle.similarTo( style ) && ( lastStyle.start + lastStyle.length == style.start ) ) {
lastStyle.length += style.length;
代码示例来源:origin: brianfrankcooper/YCSB
lastRow = currentRow;
result.lastElement().put(new String(reader.get_column_qualifier()),
new ByteArrayByteIterator(reader.get_value()));
代码示例来源:origin: xalan/xalan
} else {
Predicate predicate = (Predicate)_predicates.lastElement();
_predicates.remove(predicate);
代码示例来源:origin: xalan/xalan
final Predicate predicate = (Predicate)_predicates.lastElement();
_predicates.remove(predicate);
内容来源于网络,如有侵权,请联系作者删除!