Java Doc for FxArrayUtils.java in  » J2EE » fleXive » com » flexive » shared » 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 » J2EE » fleXive » com.flexive.shared 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.FxArrayUtils

FxArrayUtils
public class FxArrayUtils (Code)
Utility functions for arrays.
author:
   Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
version:
   $Rev: 181 $




Method Summary
public static  int[]addElement(int[] list, int element)
     Adds a element to the end of the array, if it is not already contained.
public static  long[]addElement(long[] list, long element)
     Adds a element to the end of the array, if it is not already contained.
public static  T[]addElement(T[] list, T element, boolean unique)
     Adds a element to the end of the array.
public static  T[]addElement(T[] list, T element)
     Adds a element to the end of the array.
public static  int[]addElements(int[] list, int[] elements)
     Adds every element in a list to the end of the array, if it is not already contained.
public static  T[]clone(T[] array)
    
public static  booleancontainsElement(int[] list, int element)
     Return true if the list contains the given element.
public static  booleancontainsElement(SelectableObject[] list, SelectableObject element)
     Return true if the list contains the given element.
public static  booleancontainsElement(byte[] list, byte element)
     Return true if the list contains the given element.
public static  booleancontainsElement(String[] list, String element, boolean ignoreCase)
     Return true if the list contains the given element.
public static  booleancontainsElement(long[] list, long element)
     Return true if the list contains the given element.
public static  intindexOf(String[] list, String element, boolean ignoreCase)
     Returns the first occurence of the given element.
public static  int[]removeDuplicates(int[] list)
     Removes dupicated entries from the list.
public static  long[]removeDuplicates(long[] list)
     Removes dupicated entries from the list.
public static  int[]removeElementFromList(int[] list, int element)
     Removes the given element from the list.
public static  int[]removeElementsFromList(int[] list, int elements)
     Removes the given elements from the list.
public static  String[]toArray(String list, char separator)
     Converts a list with items separated by a specific delimeter to a array.
public static  int[]toIntArray(String list, char separator)
     Converts a list with integer items separated by a specific delimeter to a array.
public static  int[]toIntArray(Integer list)
    
public static  long[]toLongArray(String list, char separator)
     Converts a list with long items separated by a specific delimeter to a array.
public static  StringtoSeparatedList(SelectableObjectWithLabel[] values, char separator)
     Converts a SelectableObjectWithLabel array to a string list containing the id's.
public static  StringtoSeparatedList(int[] values, char separator)
     Converts a int array to a string list.
public static  StringtoSeparatedList(byte[] values, char separator)
     Converts a byte array to a string list.
public static  StringtoSeparatedList(long[] values, char separator)
     Converts a long array to a string list.
public static  StringtoSeparatedList(List elements, String delim)
     Join a list of elements using the given delimiter.
public static  StringtoSeparatedList(String[] elements, String delim)
     Join an array of elements using the given delimiter.



Method Detail
addElement
public static int[] addElement(int[] list, int element)(Code)
Adds a element to the end of the array, if it is not already contained.
Parameters:
  list - original list
Parameters:
  element - the element to add the new list



addElement
public static long[] addElement(long[] list, long element)(Code)
Adds a element to the end of the array, if it is not already contained.
Parameters:
  list - original list
Parameters:
  element - the element to add the new list



addElement
public static T[] addElement(T[] list, T element, boolean unique)(Code)
Adds a element to the end of the array.
Parameters:
  list - original list
Parameters:
  element - the element to add
Parameters:
  unique - true if the element should only be added if it is not already contained the new list



addElement
public static T[] addElement(T[] list, T element)(Code)
Adds a element to the end of the array.
Parameters:
  list - original list
Parameters:
  element - the element to add the new list



addElements
public static int[] addElements(int[] list, int[] elements)(Code)
Adds every element in a list to the end of the array, if it is not already contained.
Parameters:
  elements - the elements to add
Parameters:
  list - the list to add the element to the new list



clone
public static T[] clone(T[] array)(Code)
Generic shallow array clone function (until commons ArrayUtils is generified) <
Parameters:
  T - > array type
Parameters:
  array - the array to be cloned (shallow copy) the cloned array (shallow copy)



containsElement
public static boolean containsElement(int[] list, int element)(Code)
Return true if the list contains the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for true if the list contains the given element



containsElement
public static boolean containsElement(SelectableObject[] list, SelectableObject element)(Code)
Return true if the list contains the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for true if the list contains the given element



containsElement
public static boolean containsElement(byte[] list, byte element)(Code)
Return true if the list contains the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for true if the list contains the given element



containsElement
public static boolean containsElement(String[] list, String element, boolean ignoreCase)(Code)
Return true if the list contains the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for
Parameters:
  ignoreCase - if set to false the compare is done case sensitive true if the list contains the given element



containsElement
public static boolean containsElement(long[] list, long element)(Code)
Return true if the list contains the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for true if the list contains the given element



indexOf
public static int indexOf(String[] list, String element, boolean ignoreCase)(Code)
Returns the first occurence of the given element.
Parameters:
  list - the list
Parameters:
  element - the element to look for
Parameters:
  ignoreCase - if set to false the compare is done case sensitive true the first position, or -1 if the element was not found



removeDuplicates
public static int[] removeDuplicates(int[] list)(Code)
Removes dupicated entries from the list.
Parameters:
  list - the list the list without any duplicated entries



removeDuplicates
public static long[] removeDuplicates(long[] list)(Code)
Removes dupicated entries from the list.
Parameters:
  list - the list the list without any duplicated entries



removeElementFromList
public static int[] removeElementFromList(int[] list, int element)(Code)
Removes the given element from the list.
Parameters:
  list - the list the element should be removed from
Parameters:
  element - the element to remove the list without the given element



removeElementsFromList
public static int[] removeElementsFromList(int[] list, int elements)(Code)
Removes the given elements from the list.
Parameters:
  list - the list the element should be removed from
Parameters:
  elements - the elements to remove the list without the given element



toArray
public static String[] toArray(String list, char separator)(Code)
Converts a list with items separated by a specific delimeter to a array.

A empty array will be returned if the list is null or a empty string.
Parameters:
  list - the list
Parameters:
  separator - the separator character the array




toIntArray
public static int[] toIntArray(String list, char separator) throws FxInvalidParameterException(Code)
Converts a list with integer items separated by a specific delimeter to a array.

A empty array will be returned if the list is null or a empty string.
Parameters:
  list - the list
Parameters:
  separator - the separator character the array
throws:
  FxInvalidParameterException - if the list can not be converted, the exception's getParameterName()function will return the token that caused the exception




toIntArray
public static int[] toIntArray(Integer list)(Code)



toLongArray
public static long[] toLongArray(String list, char separator) throws FxInvalidParameterException(Code)
Converts a list with long items separated by a specific delimeter to a array.

A empty array will be returned if the list is null or a empty string.
Parameters:
  list - the list
Parameters:
  separator - the separator character the array
throws:
  FxInvalidParameterException - if the list can not be converted, the exception's getParameterName()function will return the token that caused the exception




toSeparatedList
public static String toSeparatedList(SelectableObjectWithLabel[] values, char separator)(Code)
Converts a SelectableObjectWithLabel array to a string list containing the id's.
Parameters:
  values - the array
Parameters:
  separator - the separator to use between the id's the array as string list



toSeparatedList
public static String toSeparatedList(int[] values, char separator)(Code)
Converts a int array to a string list.
Parameters:
  values - the array
Parameters:
  separator - the separator to use between the numbers the array as string list



toSeparatedList
public static String toSeparatedList(byte[] values, char separator)(Code)
Converts a byte array to a string list.
Parameters:
  values - the array
Parameters:
  separator - the separator to use between the numbers the array as string list



toSeparatedList
public static String toSeparatedList(long[] values, char separator)(Code)
Converts a long array to a string list.
Parameters:
  values - the array
Parameters:
  separator - the separator to use between the numbers the array as string list



toSeparatedList
public static String toSeparatedList(List elements, String delim)(Code)
Join a list of elements using the given delimiter.
Parameters:
  elements - Elements to be joined
Parameters:
  delim - Delimiter between elements Joined string



toSeparatedList
public static String toSeparatedList(String[] elements, String delim)(Code)
Join an array of elements using the given delimiter.
Parameters:
  elements - Elements to be joined
Parameters:
  delim - Delimiter between elements Joined string



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.