public final class MoreArrays extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
deduplicate(long[] data,
int start,
int end)
Remove duplicate elements in the backing store.
|
static boolean |
isSorted(long[] data,
int start,
int end)
Check that the array is sorted.
|
public static boolean isSorted(long[] data,
int start,
int end)
data - The data to test for sortedness.start - The beginning of the range to test (inclusive)end - The end of the range to test (exclusive).true iff the array is sorted.public static int deduplicate(long[] data,
int start,
int end)
data - The data to deduplicate.start - The beginning of the range to deduplicate (inclusive).end - The end of the range to deduplicate (exclusive).Copyright © 2013 GroupLens Research. All Rights Reserved.