Java Doc for Arrays.java in  » Ajax » GWT » com » google » gwt » emul » java » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » com.google.gwt.emul.java.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.emul.java.util.Arrays

Arrays
public class Arrays (Code)
Utility methods related to native arrays. [Sun docs]




Method Summary
public static  List<T>asList(T... array)
    
public static  intbinarySearch(byte[] sortedArray, byte key)
     Perform a binary search on a sorted byte array.
public static  intbinarySearch(char[] a, char key)
     Perform a binary search on a sorted char array.
public static  intbinarySearch(double[] sortedArray, double key)
     Perform a binary search on a sorted double array.
public static  intbinarySearch(float[] sortedArray, float key)
     Perform a binary search on a sorted float array.
public static  intbinarySearch(int[] sortedArray, int key)
     Perform a binary search on a sorted int array.
public static  intbinarySearch(long[] sortedArray, long key)
     Perform a binary search on a sorted long array. Note that most underlying JavaScript interpreters do not actually implement longs, so the values must be stored in doubles instead.
public static  intbinarySearch(Object[] sortedArray, Object key)
     Perform a binary search on a sorted object array, using natural ordering.
public static  intbinarySearch(short[] sortedArray, short key)
     Perform a binary search on a sorted short array.
public static  intbinarySearch(T[] sortedArray, T key, Comparator<? super T> comparator)
     Perform a binary search on a sorted object array, using a user-specified comparison function.
Parameters:
  sortedArray - object array to search
Parameters:
  key - value to search for
Parameters:
  comparator - comparision function, null indicatesnatural ordering should be used.
public static  booleandeepEquals(Object[] a1, Object[] a2)
    
public static  intdeepHashCode(Object[] a)
    
public static  StringdeepToString(Object[] a)
    
public static  booleanequals(boolean[] array1, boolean[] array2)
    
public static  booleanequals(byte[] array1, byte[] array2)
    
public static  booleanequals(char[] array1, char[] array2)
    
public static  booleanequals(double[] array1, double[] array2)
    
public static  booleanequals(float[] array1, float[] array2)
    
public static  booleanequals(int[] array1, int[] array2)
    
public static  booleanequals(long[] array1, long[] array2)
    
public static  booleanequals(Object[] array1, Object[] array2)
    
public static  booleanequals(short[] array1, short[] array2)
    
public static  voidfill(boolean[] a, boolean val)
    
public static  voidfill(boolean[] a, int fromIndex, int toIndex, boolean val)
    
public static  voidfill(byte[] a, byte val)
    
public static  voidfill(byte[] a, int fromIndex, int toIndex, byte val)
    
public static  voidfill(char[] a, char val)
    
public static  voidfill(char[] a, int fromIndex, int toIndex, char val)
    
public static  voidfill(double[] a, double val)
    
public static  voidfill(double[] a, int fromIndex, int toIndex, double val)
    
public static  voidfill(float[] a, float val)
    
public static  voidfill(float[] a, int fromIndex, int toIndex, float val)
    
public static  voidfill(int[] a, int val)
    
public static  voidfill(int[] a, int fromIndex, int toIndex, int val)
    
public static  voidfill(long[] a, int fromIndex, int toIndex, long val)
    
public static  voidfill(long[] a, long val)
    
public static  voidfill(Object[] a, int fromIndex, int toIndex, Object val)
    
public static  voidfill(Object[] a, Object val)
    
public static  voidfill(short[] a, int fromIndex, int toIndex, short val)
    
public static  voidfill(short[] a, short val)
    
public static  inthashCode(boolean[] a)
    
public static  inthashCode(byte[] a)
    
public static  inthashCode(char[] a)
    
public static  inthashCode(double[] a)
    
public static  inthashCode(float[] a)
    
public static  inthashCode(int[] a)
    
public static  inthashCode(long[] a)
    
public static  inthashCode(Object[] a)
    
public static  inthashCode(short[] a)
    
public static  voidsort(byte[] array)
    
public static  voidsort(byte[] array, int fromIndex, int toIndex)
    
public static  voidsort(double[] array)
    
public static  voidsort(double[] array, int fromIndex, int toIndex)
    
public static  voidsort(float[] array)
    
public static  voidsort(float[] array, int fromIndex, int toIndex)
    
public static  voidsort(int[] array)
    
public static  voidsort(int[] array, int fromIndex, int toIndex)
    
public static  voidsort(long[] array)
    
public static  voidsort(long[] array, int fromIndex, int toIndex)
    
public static  voidsort(Object[] array)
    
public static  voidsort(Object[] x, int fromIndex, int toIndex)
    
public static  voidsort(short[] array)
    
public static  voidsort(short[] array, int fromIndex, int toIndex)
    
public static  voidsort(T[] x, Comparator<? super T> c)
    
public static  voidsort(T[] x, int fromIndex, int toIndex, Comparator<? super T> c)
    
public static  StringtoString(boolean[] a)
    
public static  StringtoString(byte[] a)
    
public static  StringtoString(char[] a)
    
public static  StringtoString(double[] a)
    
public static  StringtoString(float[] a)
    
public static  StringtoString(int[] a)
    
public static  StringtoString(long[] a)
    
public static  StringtoString(Object[] x)
    
public static  StringtoString(short[] a)
    



Method Detail
asList
public static List<T> asList(T... array)(Code)



binarySearch
public static int binarySearch(byte[] sortedArray, byte key)(Code)
Perform a binary search on a sorted byte array.
Parameters:
  sortedArray - byte array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(char[] a, char key)(Code)
Perform a binary search on a sorted char array.
Parameters:
  a - char array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(double[] sortedArray, double key)(Code)
Perform a binary search on a sorted double array.
Parameters:
  sortedArray - double array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(float[] sortedArray, float key)(Code)
Perform a binary search on a sorted float array. Note that some underlying JavaScript interpreters do not actually implement floats (using double instead), so you may get slightly different behavior regarding values that are very close (or equal) since conversion errors to/from double may change the values slightly.
Parameters:
  sortedArray - float array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(int[] sortedArray, int key)(Code)
Perform a binary search on a sorted int array.
Parameters:
  sortedArray - int array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(long[] sortedArray, long key)(Code)
Perform a binary search on a sorted long array. Note that most underlying JavaScript interpreters do not actually implement longs, so the values must be stored in doubles instead. This means that certain legal values cannot be represented, and comparison of two unequal long values may result in unexpected results if they are not also representable as doubles.
Parameters:
  sortedArray - long array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(Object[] sortedArray, Object key)(Code)
Perform a binary search on a sorted object array, using natural ordering.
Parameters:
  sortedArray - object array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)
throws:
  ClassCastException - if key is not comparable tosortedArray's elements.



binarySearch
public static int binarySearch(short[] sortedArray, short key)(Code)
Perform a binary search on a sorted short array.
Parameters:
  sortedArray - short array to search
Parameters:
  key - value to search for the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)



binarySearch
public static int binarySearch(T[] sortedArray, T key, Comparator<? super T> comparator)(Code)
Perform a binary search on a sorted object array, using a user-specified comparison function.
Parameters:
  sortedArray - object array to search
Parameters:
  key - value to search for
Parameters:
  comparator - comparision function, null indicatesnatural ordering should be used. the index of an element with a matching value, or a negative numberwhich is the index of the next larger value (or just past the endof the array if the searched value is larger than all elements inthe array) minus 1 (to ensure error returns are negative)
throws:
  ClassCastException - if key andsortedArray's elements cannot be compared bycomparator.



deepEquals
public static boolean deepEquals(Object[] a1, Object[] a2)(Code)



deepHashCode
public static int deepHashCode(Object[] a)(Code)



deepToString
public static String deepToString(Object[] a)(Code)



equals
public static boolean equals(boolean[] array1, boolean[] array2)(Code)



equals
public static boolean equals(byte[] array1, byte[] array2)(Code)



equals
public static boolean equals(char[] array1, char[] array2)(Code)



equals
public static boolean equals(double[] array1, double[] array2)(Code)



equals
public static boolean equals(float[] array1, float[] array2)(Code)



equals
public static boolean equals(int[] array1, int[] array2)(Code)



equals
public static boolean equals(long[] array1, long[] array2)(Code)



equals
public static boolean equals(Object[] array1, Object[] array2)(Code)



equals
public static boolean equals(short[] array1, short[] array2)(Code)



fill
public static void fill(boolean[] a, boolean val)(Code)



fill
public static void fill(boolean[] a, int fromIndex, int toIndex, boolean val)(Code)



fill
public static void fill(byte[] a, byte val)(Code)



fill
public static void fill(byte[] a, int fromIndex, int toIndex, byte val)(Code)



fill
public static void fill(char[] a, char val)(Code)



fill
public static void fill(char[] a, int fromIndex, int toIndex, char val)(Code)



fill
public static void fill(double[] a, double val)(Code)



fill
public static void fill(double[] a, int fromIndex, int toIndex, double val)(Code)



fill
public static void fill(float[] a, float val)(Code)



fill
public static void fill(float[] a, int fromIndex, int toIndex, float val)(Code)



fill
public static void fill(int[] a, int val)(Code)



fill
public static void fill(int[] a, int fromIndex, int toIndex, int val)(Code)



fill
public static void fill(long[] a, int fromIndex, int toIndex, long val)(Code)



fill
public static void fill(long[] a, long val)(Code)



fill
public static void fill(Object[] a, int fromIndex, int toIndex, Object val)(Code)



fill
public static void fill(Object[] a, Object val)(Code)



fill
public static void fill(short[] a, int fromIndex, int toIndex, short val)(Code)



fill
public static void fill(short[] a, short val)(Code)



hashCode
public static int hashCode(boolean[] a)(Code)



hashCode
public static int hashCode(byte[] a)(Code)



hashCode
public static int hashCode(char[] a)(Code)



hashCode
public static int hashCode(double[] a)(Code)



hashCode
public static int hashCode(float[] a)(Code)



hashCode
public static int hashCode(int[] a)(Code)



hashCode
public static int hashCode(long[] a)(Code)



hashCode
public static int hashCode(Object[] a)(Code)



hashCode
public static int hashCode(short[] a)(Code)



sort
public static void sort(byte[] array)(Code)



sort
public static void sort(byte[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(double[] array)(Code)



sort
public static void sort(double[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(float[] array)(Code)



sort
public static void sort(float[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(int[] array)(Code)



sort
public static void sort(int[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(long[] array)(Code)



sort
public static void sort(long[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(Object[] array)(Code)



sort
public static void sort(Object[] x, int fromIndex, int toIndex)(Code)



sort
public static void sort(short[] array)(Code)



sort
public static void sort(short[] array, int fromIndex, int toIndex)(Code)



sort
public static void sort(T[] x, Comparator<? super T> c)(Code)



sort
public static void sort(T[] x, int fromIndex, int toIndex, Comparator<? super T> c)(Code)



toString
public static String toString(boolean[] a)(Code)



toString
public static String toString(byte[] a)(Code)



toString
public static String toString(char[] a)(Code)



toString
public static String toString(double[] a)(Code)



toString
public static String toString(float[] a)(Code)



toString
public static String toString(int[] a)(Code)



toString
public static String toString(long[] a)(Code)



toString
public static String toString(Object[] x)(Code)



toString
public static String toString(short[] a)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.