/** * Returns a new {@link ThingTag}. * * @param id the ID of the modified Thing. * @param revision the revision of the modified Thing. * @return a new {@link ThingTag}. */ public static ThingTag of(final String id, final long revision) { return new ThingTag(id, revision); }
/** * Returns a new {@link ThingTag}. * * @param id the ID of the modified Thing. * @param revision the revision of the modified Thing. * @return a new {@link ThingTag}. */ public static ThingTag of(final String id, final long revision) { return new ThingTag(id, revision); }
/** * Creates a new {@link ThingTag} from a JSON object. * * @param jsonObject the JSON object of which a new {@link ThingTag} is to be created. * @return the {@link ThingTag} which was created from the given JSON object. * @throws NullPointerException if {@code jsonObject} is {@code null}. * @throws IllegalArgumentException if {@code jsonObject} is empty. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonObject} is not valid JSON. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the passed in {@code jsonObject} was not in the * expected format. */ public static ThingTag fromJson(final JsonObject jsonObject) { return new ThingTag(jsonObject); }
/** * Creates a new {@link ThingTag} from a JSON object. * * @param jsonObject the JSON object of which a new {@link ThingTag} is to be created. * @return the {@link ThingTag} which was created from the given JSON object. * @throws NullPointerException if {@code jsonObject} is {@code null}. * @throws IllegalArgumentException if {@code jsonObject} is empty. * @throws org.eclipse.ditto.json.JsonParseException if the passed in {@code jsonObject} is not valid JSON. * @throws org.eclipse.ditto.json.JsonMissingFieldException if the passed in {@code jsonObject} was not in the * expected format. */ public static ThingTag fromJson(final JsonObject jsonObject) { return new ThingTag(jsonObject); }