Package com.cumulocity.model.idtype
Class GId
- java.lang.Object
-
- org.svenson.AbstractDynamicProperties
-
- com.cumulocity.model.ID
-
- com.cumulocity.model.idtype.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> com.google.common.base.Function<T,GId>
asGId()
static GId
asGId(Long id)
static GId
asGId(Object id)
static GId
asGId(String id)
static com.google.common.base.Function<GId,String>
asString()
Long
getLong()
Deprecated.String
toJSON()
GId type returns just its value when converting to JSON (see https://startups.jira.com/wiki/display/MTM/Identification+model)-
Methods inherited from class com.cumulocity.model.ID
asString, equals, equalsIgnoreClass, getName, getType, getValue, hashCode, setName, setType, setValue, toString
-
-
-
-
Method Detail
-
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 interfaceorg.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()
-
-