Class GId

  • All Implemented Interfaces:
    Serializable, org.svenson.DynamicProperties, org.svenson.JSONable

    public class GId
    extends ID
    implements org.svenson.JSONable
    See Also:
    Serialized Form
    • Method Detail

      • asGId

        public static GId asGId​(Object id)
      • asGId

        public static GId asGId​(String id)
      • asGId

        public static GId asGId​(Long id)
      • asString

        public static com.google.common.base.Function<GId,​String> asString()
      • toJSON

        public String toJSON()
        GId type returns just its value when converting to JSON (see https://startups.jira.com/wiki/display/MTM/Identification+model)
        Specified by:
        toJSON in interface org.svenson.JSONable
      • getLong

        @Deprecated
        public Long getLong()
        Deprecated.
        GId is not always a number anymore The method will be removed with a next release
      • asGId

        public static <T> com.google.common.base.Function<T,​GId> asGId()