Package com.googlecode.objectify.annotation

Examples of com.googlecode.objectify.annotation.Stringify


    // We apply to any Map
    if (!Map.class.isAssignableFrom(mapType))
      return null;

    Stringify stringify = tk.getAnnotation(Stringify.class);

    final Type keyType = GenericUtils.getMapKeyType(tk.getType());
    Class<?> keyTypeErased = GenericTypeReflector.erase(keyType);

    Class<? extends Stringifier> stringifierClass = null;
    if (stringify != null)
      stringifierClass = stringify.value();
    else if (keyTypeErased == String.class)
      stringifierClass = NullStringifier.class;
    else if (Enum.class.isAssignableFrom(keyTypeErased))
      stringifierClass = EnumStringifier.class;
    else if (keyTypeErased == Key.class)
View Full Code Here

TOP

Related Classes of com.googlecode.objectify.annotation.Stringify

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.