⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modelutil.html

📁 开源项目smack的API文件
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#hasNonNullElement(java.lang.Object[])">hasNonNullElement</A></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>[]&nbsp;array)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <CODE>true</CODE> if the specified array is not null and contains a non-null element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#hasStringChanged(java.lang.String, java.lang.String)">hasStringChanged</A></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>&nbsp;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>&nbsp;newString)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if a string has been changed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#iteratorAsList(java.util.Iterator)">iteratorAsList</A></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>&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Build a List of all elements in an Iterator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#nullifyIfEmpty(java.lang.String)">nullifyIfEmpty</A></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>&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <CODE>null</CODE> if the specified string is empty or <CODE>null</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#nullifyingToString(java.lang.Object)">nullifyingToString</A></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>&nbsp;o)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <CODE>null</CODE> if the specified object is null or if its <CODE>toString()</CODE> representation is empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#reverseListIterator(java.util.ListIterator)">reverseListIterator</A></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>&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an Iterator that is the reverse of a ListIterator.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="areEqual(java.lang.Object, java.lang.Object)"><!-- --></A><H3>areEqual</H3><PRE>public static final boolean <B>areEqual</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>&nbsp;o1,                                     <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o2)</PRE><DL><DD>This is a utility method that compares two objects when one or both of the objects might be <CODE>null</CODE>  The result of this method is determined as follows: <OL> <LI>If <CODE>o1</CODE> and <CODE>o2</CODE> are the same object according to the <CODE>==</CODE> operator, return <CODE>true</CODE>. <LI>Otherwise, if either <CODE>o1</CODE> or <CODE>o2</CODE> is <CODE>null</CODE>, return <CODE>false</CODE>. <LI>Otherwise, return <CODE>o1.equals(o2)</CODE>. </OL> <p/> This method produces the exact logically inverted result as the <A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#areDifferent(java.lang.Object, java.lang.Object)"><CODE>areDifferent(Object, Object)</CODE></A> method.<P> <p/> For array types, one of the <CODE>equals</CODE> methods in <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Arrays.html" title="class or interface in java.util"><CODE>Arrays</CODE></A> should be used instead of this method. Note that arrays with more than one dimension will require some custom code in order to implement <CODE>equals</CODE> properly.<P><DD><DL></DL></DD></DL><HR><A NAME="areBooleansEqual(java.lang.Boolean, java.lang.Boolean)"><!-- --></A><H3>areBooleansEqual</H3><PRE>public static final boolean <B>areBooleansEqual</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;b1,                                             <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;b2)</PRE><DL><DD>This is a utility method that compares two Booleans when one or both of the objects might be <CODE>null</CODE>  The result of this method is determined as follows: <OL> <LI>If <CODE>b1</CODE> and <CODE>b2</CODE> are both TRUE or neither <CODE>b1</CODE> nor <CODE>b2</CODE> is TRUE, return <CODE>true</CODE>. <LI>Otherwise, return <CODE>false</CODE>. </OL> <p/><P><DD><DL></DL></DD></DL><HR><A NAME="areDifferent(java.lang.Object, java.lang.Object)"><!-- --></A><H3>areDifferent</H3><PRE>public static final boolean <B>areDifferent</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>&nbsp;o1,                                         <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;o2)</PRE><DL><DD>This is a utility method that compares two objects when one or both of the objects might be <CODE>null</CODE>.  The result returned by this method is determined as follows: <OL> <LI>If <CODE>o1</CODE> and <CODE>o2</CODE> are the same object according to the <CODE>==</CODE> operator, return <CODE>false</CODE>. <LI>Otherwise, if either <CODE>o1</CODE> or <CODE>o2</CODE> is <CODE>null</CODE>, return <CODE>true</CODE>. <LI>Otherwise, return <CODE>!o1.equals(o2)</CODE>. </OL> <p/> This method produces the exact logically inverted result as the <A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#areEqual(java.lang.Object, java.lang.Object)"><CODE>areEqual(Object, Object)</CODE></A> method.<P> <p/> For array types, one of the <CODE>equals</CODE> methods in <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Arrays.html" title="class or interface in java.util"><CODE>Arrays</CODE></A> should be used instead of this method. Note that arrays with more than one dimension will require some custom code in order to implement <CODE>equals</CODE> properly.<P><DD><DL></DL></DD></DL><HR><A NAME="areBooleansDifferent(java.lang.Boolean, java.lang.Boolean)"><!-- --></A><H3>areBooleansDifferent</H3><PRE>public static final boolean <B>areBooleansDifferent</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;b1,                                                 <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;b2)</PRE><DL><DD>This is a utility method that compares two Booleans when one or both of the objects might be <CODE>null</CODE>  The result of this method is determined as follows: <OL> <LI>If <CODE>b1</CODE> and <CODE>b2</CODE> are both TRUE or neither <CODE>b1</CODE> nor <CODE>b2</CODE> is TRUE, return <CODE>false</CODE>. <LI>Otherwise, return <CODE>true</CODE>. </OL> <p/> This method produces the exact logically inverted result as the <A HREF="../../../../../org/jivesoftware/smackx/workgroup/util/ModelUtil.html#areBooleansEqual(java.lang.Boolean, java.lang.Boolean)"><CODE>areBooleansEqual(Boolean, Boolean)</CODE></A> method.<P><P><DD><DL></DL></DD></DL><HR><A NAME="hasNonNullElement(java.lang.Object[])"><!-- --></A><H3>hasNonNullElement</H3><PRE>public static final boolean <B>hasNonNullElement</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>[]&nbsp;array)</PRE><DL><DD>Returns <CODE>true</CODE> if the specified array is not null and contains a non-null element.  Returns <CODE>false</CODE> if the array is null or if all the array elements are null.<P><DD><DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -