|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.Util
Static utility methods.
Constructor Summary | |
(package private) |
Util()
|
Method Summary | |
(package private) static java.net.URL[] |
convert(java.net.URI[] uris)
Converts an array of java.net.URIs to an array of java.net.URLs ?Temporary method whilst removing java.net.URL s from Obj s. |
(package private) static java.net.URI[] |
convert(java.net.URL[] urls)
Converts an array of java.net.URLs to an array of java.net.URIs ?Temporary method whilst removing java.net.URL s from Obj s. |
(package private) static boolean |
equals(byte[] a,
byte[] b)
|
(package private) static boolean |
equals(java.lang.Object[] a,
java.lang.Object[] b)
Returns true iff both parameters are null or
if elements are equals(). |
(package private) static boolean |
equals(java.lang.Object a,
java.lang.Object b)
Returns true iff both parameters are null or
they are equals(). |
(package private) static int |
hashCode(byte[] ba)
Returns the hash-value for an array of bytes. |
(package private) static int |
hashCode(java.lang.Object o)
Returns the hash code of an object (which also can be an object array). |
(package private) static int |
hashCode(java.lang.Object[] oa)
Returns the hash-value for an array of objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
Util()
Method Detail |
static boolean equals(java.lang.Object a, java.lang.Object b)
true
iff both parameters are null
or
they are equals().
a
- object to compare with b
.b
- object to compare with a
.
true
iff both parameters are null
or
they are equals(), false
otherwise.static boolean equals(java.lang.Object[] a, java.lang.Object[] b)
true
iff both parameters are null
or
if elements are equals().
a
- array of objects to compare with b
.b
- array of objects to compare with a
.
true
if both parameters are null
or
if elements are equals(), false
otherwise.static boolean equals(byte[] a, byte[] b)
a
- array of bytes to compare with b
b
- array of bytes to compare with a
true
if both parameters are null
or if the elements are equal,
false
otherwise.static int hashCode(java.lang.Object o)
o
- object to return the hash-value for.
o
.static int hashCode(java.lang.Object[] oa)
oa
- object array to create the hash-value from.
oa
.static int hashCode(byte[] ba)
ba
- the byte array
static java.net.URI[] convert(java.net.URL[] urls)
java.net.URL
s from Obj
s.
urls
-
static java.net.URL[] convert(java.net.URI[] uris)
java.net.URL
s from Obj
s.
uris
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |