com.tensegrity.palowebviewer.modules.paloclient.client.misc
Class XArrays

java.lang.Object
  extended by com.tensegrity.palowebviewer.modules.paloclient.client.misc.XArrays

public class XArrays
extends java.lang.Object


Constructor Summary
XArrays()
           
 
Method Summary
static XObject[] copy(XObject[] array)
           
static XObject[] copy(XObject[] array, int type)
           
static XObject[] copy(XObject[] array, int i1, int i2)
           
static XObject[] copy(XObject[] array, int i1, int i2, int type)
           
static boolean equalsByName(XObject[] array1, XObject[] array2)
          Checks if two arrays has the same size and objects in them has equal names.
static XObject findById(XObject[] objects, java.lang.String id)
           
static XObject findByName(XObject[] objects, java.lang.String name)
           
static int findIndex(XObject[] objects, XObject o)
           
static int findIndexById(java.util.List list, java.lang.String id)
           
static int findIndexById(XObject[] objects, java.lang.String id)
           
static int findIndexByName(XObject[] objects, java.lang.String name)
           
static int hashCode(XObject[] array)
           
static XObject[] newArray(int type, int size)
           
static XObject[] toArray(java.util.List list)
           
static XObject[] toArray(java.util.List list, int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XArrays

public XArrays()
Method Detail

copy

public static XObject[] copy(XObject[] array,
                             int i1,
                             int i2)

copy

public static XObject[] copy(XObject[] array,
                             int i1,
                             int i2,
                             int type)

copy

public static XObject[] copy(XObject[] array)

copy

public static XObject[] copy(XObject[] array,
                             int type)

equalsByName

public static boolean equalsByName(XObject[] array1,
                                   XObject[] array2)
Checks if two arrays has the same size and objects in them has equal names.


hashCode

public static int hashCode(XObject[] array)

findById

public static XObject findById(XObject[] objects,
                               java.lang.String id)

findIndexById

public static int findIndexById(XObject[] objects,
                                java.lang.String id)

findIndexById

public static int findIndexById(java.util.List list,
                                java.lang.String id)

findIndex

public static int findIndex(XObject[] objects,
                            XObject o)

newArray

public static XObject[] newArray(int type,
                                 int size)

toArray

public static XObject[] toArray(java.util.List list)

toArray

public static XObject[] toArray(java.util.List list,
                                int type)

findByName

public static XObject findByName(XObject[] objects,
                                 java.lang.String name)

findIndexByName

public static int findIndexByName(XObject[] objects,
                                  java.lang.String name)