PageRenderTime 52ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/util/StandardUtilities.StringCompare.html

#
HTML | 270 lines | 223 code | 35 blank | 12 comment | 0 complexity | 7000ee173b694413f3670916ca2b426c MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:16 GMT-08:00 2008 -->
  6. <TITLE>
  7. StandardUtilities.StringCompare (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.util.StandardUtilities.StringCompare class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StandardUtilities.StringCompare.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../org/gjt/sp/util/StandardUtilities.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../org/gjt/sp/util/StringList.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../index.html?org/gjt/sp/util/StandardUtilities.StringCompare.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="StandardUtilities.StringCompare.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.util</FONT>
  66. <BR>
  67. Class StandardUtilities.StringCompare</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.util.StandardUtilities.StringCompare</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD>java.util.Comparator</DD>
  74. </DL>
  75. <DL>
  76. <DT><B>Enclosing class:</B><DD><A HREF="../../../../org/gjt/sp/util/StandardUtilities.html" title="class in org.gjt.sp.util">StandardUtilities</A></DD>
  77. </DL>
  78. <HR>
  79. <DL>
  80. <DT><PRE>public static class <B>StandardUtilities.StringCompare</B><DT>extends java.lang.Object<DT>implements java.util.Comparator</DL>
  81. </PRE>
  82. <P>
  83. Compares objects as strings.
  84. <P>
  85. <P>
  86. <HR>
  87. <P>
  88. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  89. <A NAME="constructor_summary"><!-- --></A>
  90. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  91. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  92. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  93. <B>Constructor Summary</B></FONT></TH>
  94. </TR>
  95. <TR BGCOLOR="white" CLASS="TableRowColor">
  96. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/StandardUtilities.StringCompare.html#StandardUtilities.StringCompare()">StandardUtilities.StringCompare</A></B>()</CODE>
  97. <BR>
  98. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  99. </TR>
  100. <TR BGCOLOR="white" CLASS="TableRowColor">
  101. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/StandardUtilities.StringCompare.html#StandardUtilities.StringCompare(boolean)">StandardUtilities.StringCompare</A></B>(boolean&nbsp;icase)</CODE>
  102. <BR>
  103. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  104. </TR>
  105. </TABLE>
  106. &nbsp;
  107. <!-- ========== METHOD SUMMARY =========== -->
  108. <A NAME="method_summary"><!-- --></A>
  109. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  110. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  111. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  112. <B>Method Summary</B></FONT></TH>
  113. </TR>
  114. <TR BGCOLOR="white" CLASS="TableRowColor">
  115. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  116. <CODE>&nbsp;int</CODE></FONT></TD>
  117. <TD><CODE><B><A HREF="../../../../org/gjt/sp/util/StandardUtilities.StringCompare.html#compare(java.lang.Object, java.lang.Object)">compare</A></B>(java.lang.Object&nbsp;obj1,
  118. java.lang.Object&nbsp;obj2)</CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  124. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  125. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  126. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  127. </TR>
  128. <TR BGCOLOR="white" CLASS="TableRowColor">
  129. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  130. </TR>
  131. </TABLE>
  132. &nbsp;<A NAME="methods_inherited_from_class_java.util.Comparator"><!-- --></A>
  133. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  134. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  135. <TH ALIGN="left"><B>Methods inherited from interface java.util.Comparator</B></TH>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD><CODE>equals</CODE></TD>
  139. </TR>
  140. </TABLE>
  141. &nbsp;
  142. <P>
  143. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  144. <A NAME="constructor_detail"><!-- --></A>
  145. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  146. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  147. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  148. <B>Constructor Detail</B></FONT></TH>
  149. </TR>
  150. </TABLE>
  151. <A NAME="StandardUtilities.StringCompare(boolean)"><!-- --></A><H3>
  152. StandardUtilities.StringCompare</H3>
  153. <PRE>
  154. public <B>StandardUtilities.StringCompare</B>(boolean&nbsp;icase)</PRE>
  155. <DL>
  156. </DL>
  157. <HR>
  158. <A NAME="StandardUtilities.StringCompare()"><!-- --></A><H3>
  159. StandardUtilities.StringCompare</H3>
  160. <PRE>
  161. public <B>StandardUtilities.StringCompare</B>()</PRE>
  162. <DL>
  163. </DL>
  164. <!-- ============ METHOD DETAIL ========== -->
  165. <A NAME="method_detail"><!-- --></A>
  166. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  167. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  168. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  169. <B>Method Detail</B></FONT></TH>
  170. </TR>
  171. </TABLE>
  172. <A NAME="compare(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
  173. compare</H3>
  174. <PRE>
  175. public int <B>compare</B>(java.lang.Object&nbsp;obj1,
  176. java.lang.Object&nbsp;obj2)</PRE>
  177. <DL>
  178. <DD><DL>
  179. <DT><B>Specified by:</B><DD><CODE>compare</CODE> in interface <CODE>java.util.Comparator</CODE></DL>
  180. </DD>
  181. <DD><DL>
  182. </DL>
  183. </DD>
  184. </DL>
  185. <!-- ========= END OF CLASS DATA ========= -->
  186. <HR>
  187. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  188. <A NAME="navbar_bottom"><!-- --></A>
  189. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  190. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  191. <TR>
  192. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  193. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  194. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  195. <TR ALIGN="center" VALIGN="top">
  196. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  199. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StandardUtilities.StringCompare.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  204. </TR>
  205. </TABLE>
  206. </TD>
  207. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  208. </EM>
  209. </TD>
  210. </TR>
  211. <TR>
  212. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  213. &nbsp;<A HREF="../../../../org/gjt/sp/util/StandardUtilities.html" title="class in org.gjt.sp.util"><B>PREV CLASS</B></A>&nbsp;
  214. &nbsp;<A HREF="../../../../org/gjt/sp/util/StringList.html" title="class in org.gjt.sp.util"><B>NEXT CLASS</B></A></FONT></TD>
  215. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  216. <A HREF="../../../../index.html?org/gjt/sp/util/StandardUtilities.StringCompare.html" target="_top"><B>FRAMES</B></A> &nbsp;
  217. &nbsp;<A HREF="StandardUtilities.StringCompare.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  218. &nbsp;
  219. <NOSCRIPT>
  220. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  221. </NOSCRIPT>
  222. </FONT></TD>
  223. </TR>
  224. <TR>
  225. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  226. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  227. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  228. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  229. </TR>
  230. </TABLE>
  231. <A NAME="skip-navbar_bottom"></A>
  232. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  233. <HR>
  234. </BODY>
  235. </HTML>