Package com.googlecode.objectify.util
Class Values
- java.lang.Object
-
- com.googlecode.objectify.util.Values
-
public class Values extends Object
Some static utility methods for interacting withValue<?>
-
-
Constructor Summary
Constructors Constructor Description Values()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
homogenizeIndexes(List<com.google.cloud.datastore.Value<?>> list)
The datastore has a weird behavior of reordering values in a list so that indexed ones come before nonindexed ones.static <D> com.google.cloud.datastore.Value<D>
index(com.google.cloud.datastore.Value<D> original, boolean index)
-
-
-
Method Detail
-
index
public static <D> com.google.cloud.datastore.Value<D> index(com.google.cloud.datastore.Value<D> original, boolean index)
- Returns:
- a value that has the specified index flag (possibly the original itself)
-
homogenizeIndexes
public static void homogenizeIndexes(List<com.google.cloud.datastore.Value<?>> list)
The datastore has a weird behavior of reordering values in a list so that indexed ones come before nonindexed ones. This can really mess up ordered lists. So if we find a heterogeneous list, we need to force index everything.
-
-