📄 modelutil.html
字号:
</DL></DD></DL><HR><A NAME="concat(java.lang.String[])"><!-- --></A><H3>concat</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>concat</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] strs)</PRE><DL><DD>Returns a single string that is the concatenation of all the strings in the specified string array. A single space is put between each string array element. Null array elements are skipped. If the array itself is null, the empty string is returned. This method is guaranteed to return a non-null value, if no expections are thrown.<P><DD><DL></DL></DD></DL><HR><A NAME="concat(java.lang.String[], java.lang.String)"><!-- --></A><H3>concat</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>concat</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] strs, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> delim)</PRE><DL><DD>Returns a single string that is the concatenation of all the strings in the specified string array. The strings are separated by the specified delimiter. Null array elements are skipped. If the array itself is null, the empty string is returned. This method is guaranteed to return a non-null value, if no expections are thrown.<P><DD><DL></DL></DD></DL><HR><A NAME="hasLength(java.lang.String)"><!-- --></A><H3>hasLength</H3><PRE>public static final boolean <B>hasLength</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> s)</PRE><DL><DD>Returns <CODE>true</CODE> if the specified <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang"><CODE>String</CODE></A> is not <CODE>null</CODE> and has a length greater than zero. This is a very frequently occurring check.<P><DD><DL></DL></DD></DL><HR><A NAME="nullifyIfEmpty(java.lang.String)"><!-- --></A><H3>nullifyIfEmpty</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>nullifyIfEmpty</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> s)</PRE><DL><DD>Returns <CODE>null</CODE> if the specified string is empty or <CODE>null</CODE>. Otherwise the string itself is returned.<P><DD><DL></DL></DD></DL><HR><A NAME="nullifyingToString(java.lang.Object)"><!-- --></A><H3>nullifyingToString</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>nullifyingToString</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> o)</PRE><DL><DD>Returns <CODE>null</CODE> if the specified object is null or if its <CODE>toString()</CODE> representation is empty. Otherwise, the <CODE>toString()</CODE> representation of the object itself is returned.<P><DD><DL></DL></DD></DL><HR><A NAME="hasStringChanged(java.lang.String, java.lang.String)"><!-- --></A><H3>hasStringChanged</H3><PRE>public static boolean <B>hasStringChanged</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> oldString, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> newString)</PRE><DL><DD>Determines if a string has been changed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>oldString</CODE> - is the initial value of the String<DD><CODE>newString</CODE> - is the new value of the String<DT><B>Returns:</B><DD>true If both oldString and newString are null or if they are both not null and equal to each other. Otherwise returns false.</DL></DD></DL><HR><A NAME="getTimeFromLong(long)"><!-- --></A><H3>getTimeFromLong</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTimeFromLong</B>(long diff)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="iteratorAsList(java.util.Iterator)"><!-- --></A><H3>iteratorAsList</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>iteratorAsList</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> i)</PRE><DL><DD>Build a List of all elements in an Iterator.<P><DD><DL></DL></DD></DL><HR><A NAME="reverseListIterator(java.util.ListIterator)"><!-- --></A><H3>reverseListIterator</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>reverseListIterator</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ListIterator.html" title="class or interface in java.util">ListIterator</A> i)</PRE><DL><DD>Creates an Iterator that is the reverse of a ListIterator.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Smack</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/MetaDataUtils.html" title="class in org.jivesoftware.smackx.workgroup.util"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/jivesoftware/smackx/workgroup/util/ModelUtil.html" target="_top"><B>FRAMES</B></A> <A HREF="ModelUtil.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2007 Jive Software. </i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -