litesoft
Diff Revisions
811
vs
812
for /trunk/Java/core/Anywhere/src/org/litesoft/core/typeutils/Integers.java
|
@@ -68,26 +68,6 @@ |
68 |
68 |
|
return (pArrayToCheck == null || pArrayToCheck.length == 0); |
69 |
69 |
|
} |
70 |
70 |
|
|
71 |
|
- |
public static boolean areArraysEqual( byte[] pThis, byte[] pThat ) |
72 |
|
- |
{ |
73 |
|
- |
if ( pThis == pThat ) // handles if both are null |
74 |
|
- |
{ |
75 |
|
- |
return true; |
76 |
|
- |
} |
77 |
|
- |
if ( (pThis != null) && (pThat != null) && (pThis.length == pThat.length) ) |
78 |
|
- |
{ |
79 |
|
- |
for ( int i = pThis.length; --i >= 0; ) |
80 |
|
- |
{ |
81 |
|
- |
if ( pThis[i] != pThat[i] ) |
82 |
|
- |
{ |
83 |
|
- |
return false; |
84 |
|
- |
} |
85 |
|
- |
} |
86 |
|
- |
return true; |
87 |
|
- |
} |
88 |
|
- |
return false; |
89 |
|
- |
} |
90 |
|
- |
|
91 |
71 |
|
public static boolean areArraysEqual( int[] pThis, int[] pThat ) |
92 |
72 |
|
{ |
93 |
73 |
|
if ( pThis == pThat ) // handles if both are null |