Adapt to the new google-collect jar. Thanks Charlie.
This commit is contained in:
@@ -177,7 +177,7 @@ public abstract class KeySet<T extends PersistentRecord> extends WhereClause
|
||||
// from Iterable<Key<T>>
|
||||
public Iterator<Key<T>> iterator () {
|
||||
return Iterators.transform(
|
||||
Iterators.forArray(_keys, 0, _keys.length), new Function<Comparable<?>, Key<T>>() {
|
||||
Iterators.forArray(_keys), new Function<Comparable<?>, Key<T>>() {
|
||||
public Key<T> apply (Comparable<?> key) {
|
||||
return new Key<T>(_pClass, new Comparable<?>[] { key });
|
||||
}
|
||||
@@ -230,8 +230,8 @@ public abstract class KeySet<T extends PersistentRecord> extends WhereClause
|
||||
|
||||
// from Iterable<Key<T>>
|
||||
public Iterator<Key<T>> iterator () {
|
||||
return Iterators.transform(Iterators.forArray(_keys, 0, _keys.length),
|
||||
new Function<Comparable<?>[], Key<T>>() {
|
||||
return Iterators.transform(
|
||||
Iterators.forArray(_keys), new Function<Comparable<?>[], Key<T>>() {
|
||||
public Key<T> apply (Comparable<?>[] key) {
|
||||
return new Key<T>(_pClass, key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user