Class Values

java.lang.Object
com.googlecode.objectify.util.Values

public class Values extends Object
Some static utility methods for interacting with Value<?>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Values

      public Values()
  • Method Details

    • 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.