Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

MemcacheSerialization.Flag (Google App Engine API for Java)

Enum MemcacheSerialization.Flag

    • Method Detail

      • values

        public static MemcacheSerialization.Flag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MemcacheSerialization.Flag c : MemcacheSerialization.Flag.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MemcacheSerialization.Flag valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromInt

        public static MemcacheSerialization.Flag fromInt(int i)
        While the enum is convenient, the implementation wants ints... this factory converts int value to Flag value.