Package org.apache.catalina.tribes.util
Class Arrays
- java.lang.Object
-
- org.apache.catalina.tribes.util.Arrays
-
public class Arrays extends java.lang.Object
- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringManager
sm
-
Constructor Summary
Constructors Constructor Description Arrays()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
add(int[] data)
static boolean
contains(byte[] source, int srcoffset, byte[] key, int keyoffset, int length)
static byte[]
convert(java.lang.String s)
static Member[]
diff(Membership complete, Membership local, Member ignore)
static boolean
equals(byte[] o1, byte[] o2)
static boolean
equals(java.lang.Object[] o1, java.lang.Object[] o2)
static Member[]
extract(Member[] all, Member[] remove)
static void
fill(Membership mbrship, Member[] m)
static byte[]
fromString(java.lang.String value)
static UniqueId
getUniqudId(byte[] data)
static UniqueId
getUniqudId(ChannelMessage msg)
static int
hashCode(byte[] a)
static int
indexOf(Member member, Member[] members)
static Member[]
merge(Member[] m1, Member[] m2)
static int
nextIndex(Member member, Member[] members)
static Member[]
remove(Member[] all, Member remove)
static boolean
sameMembers(Member[] m1, Member[] m2)
static java.lang.String
toNameString(Member[] data)
static java.lang.String
toNameString(Member[] data, int offset, int length)
static java.lang.String
toString(byte[] data)
static java.lang.String
toString(byte[] data, int offset, int length)
static java.lang.String
toString(byte[] data, int offset, int length, boolean unsigned)
static java.lang.String
toString(java.lang.Object[] data)
static java.lang.String
toString(java.lang.Object[] data, int offset, int length)
-
-
-
Field Detail
-
sm
protected static final StringManager sm
-
-
Method Detail
-
contains
public static boolean contains(byte[] source, int srcoffset, byte[] key, int keyoffset, int length)
-
toString
public static java.lang.String toString(byte[] data)
-
toString
public static java.lang.String toString(byte[] data, int offset, int length)
-
toString
public static java.lang.String toString(byte[] data, int offset, int length, boolean unsigned)
-
toString
public static java.lang.String toString(java.lang.Object[] data)
-
toString
public static java.lang.String toString(java.lang.Object[] data, int offset, int length)
-
toNameString
public static java.lang.String toNameString(Member[] data)
-
toNameString
public static java.lang.String toNameString(Member[] data, int offset, int length)
-
add
public static int add(int[] data)
-
getUniqudId
public static UniqueId getUniqudId(ChannelMessage msg)
-
getUniqudId
public static UniqueId getUniqudId(byte[] data)
-
equals
public static boolean equals(byte[] o1, byte[] o2)
-
equals
public static boolean equals(java.lang.Object[] o1, java.lang.Object[] o2)
-
fill
public static void fill(Membership mbrship, Member[] m)
-
diff
public static Member[] diff(Membership complete, Membership local, Member ignore)
-
hashCode
public static int hashCode(byte[] a)
-
fromString
public static byte[] fromString(java.lang.String value)
-
convert
public static byte[] convert(java.lang.String s)
-
-