AllNames
From QED
All Packages Class Hierarchy
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Contents |
Index of all Fields and Methods
A
- [[Parts.html#a7toi(byte[])|a7toi]](byte[]). Static method in class Parts
- Read the first 4 bytes from s and interpret them as an encoding of a part ID.
- [[Parts.html#a7toi(byte[], int)|a7toi]](byte[], int). Static method in class Parts
- Read exactly 4 bytes from s beginning with s[i].
- assert(boolean, int). Static method in class Parts
- For testing only.
- assert(boolean, String). Static method in class Parts
- For testing only.
B
- [[Parts.html#binarySearch(byte[], int, byte[], int)|binarySearch]](byte[], int, byte[], int). Static method in class Parts
- Search for the i-th part of x in y, considering only the first j parts in y.
- bytesPerPart. Static variable in class Parts
- Currently 4.
C
- clear(). Method in class Parts
- clear().expose() is a new null-terminated byte array of length 1.
- [[Parts.html#compareTo(byte[], int, byte[], int)|compareTo]](byte[], int, byte[], int). Static method in class Parts
- Compare the i-th part of s with the j-th part of t (index origin is 0).
- contains(int). Method in class Parts
- Determine if this parts list contains the part with the specified ID.
- copy(). Method in class Parts
- Returns a deep copy
D
- [[Parts.html#delete(byte[], byte[])|delete]](byte[], byte[]). Static method in class Parts
- If the part was not on the parts list, return partslist, otherwise delete it from the partslist.
- delete(int). Method in class Parts
- Delete the specified part ID from this parts list.
- [[Parts.html#deleteAll(int[])|deleteAll]](int[]). Method in class Parts
- Delete the specified part IDs from this parts list.
E
- equals(Object). Method in class Parts
- See equals(Parts)
- equals(Parts). Method in class Parts
- Two parts lists are regarded as being equal iff they represent the same list of parts.
- expose(). Method in class Parts
- The encoding of this parts list.
H
I
- indexOf(int). Method in class Parts
- Use binary search to find the index, i, of the specified part in this parts list.
- [[Parts.html#insert(byte[], byte[])|insert]](byte[], byte[]). Static method in class Parts
- If the part is already on the parts list, return partslist, otherwise add part to the partslist.
- insert(int). Method in class Parts
- Insert the specified part ID into this parts list.
- [[Parts.html#insertAll(int[])|insertAll]](int[]). Method in class Parts
- Insert the specified part IDs into this parts list.
- invalid(int). Static method in class Parts
- isEmpty(). Method in class Parts
- [[Parts.html#isSubset(byte[], byte[])|isSubset]](byte[], byte[]). Static method in class Parts
- Is every part on x[] also on y[]? WARNING: It is assumed that the two arrays are both valid representations of parts lists.
- isSubset(Parts). Method in class Parts
- A binary search algorithm is employed for speed.
- [[Parts.html#isValid(byte[])|isValid]](byte[]). Static method in class Parts
- Check if the specified array is a valid encoding of a parts list.
- [[Parts.html#isValidEncoding(byte[])|isValidEncoding]](byte[]). Static method in class Parts
- Check that all the complete bytesPerPart encodings are valid.
- [[Parts.html#isValidOrder(byte[])|isValidOrder]](byte[]). Static method in class Parts
- Check that all the complete bytesPerPart encodings are sorted and not duplicated.
- [[Parts.html#itoa7(int, byte[])|itoa7]](int, byte[]). Static method in class Parts
- Put the encoding of i into s[0] ..
- [[Parts.html#itoa7(int, byte[], int)|itoa7]](int, byte[], int). Static method in class Parts
- Put the encoding of i into s[n] ..
M
- [[Parts.html#main(java.lang.String[])|main]](String[]). Static method in class Parts
- For testing only.
N
- nth(int). Method in class Parts
- The parts are stored in ascending order of IDs, so that if 0 <= i < j < this.size(), then this.nth(i) < this.nth(j).
P
- Parts(). Constructor for class Parts
- A new empty parts list.
- [[Parts.html#Parts(byte[])|Parts]](byte[]). Constructor for class Parts
- A wrapper for the specified array, which must be a valid encoding of a parts list, as specified by isValid(byte[]).
- Parts(int). Constructor for class Parts
- Create a parts list representing the part with the specified ID.
- [[Parts.html#Parts(int[])|Parts]](int[]). Constructor for class Parts
- A new parts list.
- print(byte). Static method in class Parts
- Print a byte as two hexadecimal characters so that 0 -> 00 and 255 -> FF
- [[Parts.html#print(byte[])|print]](byte[]). Static method in class Parts
- Print an array of bytes in the form 'XX XX XX ...' where each X is a hexadecimal digit
- [[Parts.html#println(byte[])|println]](byte[]). Static method in class Parts
- Call print(list) and then print a new line.
S
T
- test(). Static method in class Parts
- For testing only.
- toByteArray(). Method in class Parts
- Return a new null-terminated array of byte representing the same parts list as this in encoded form.
- toString(). Method in class Parts
- Show the ID of each part in this parts list.
- [[Parts.html#toString(byte[])|toString]](byte[]). Static method in class Parts
- Create a String as though using the deprecated constructor String(list, 0)












