/** * Returns a new {@link PolicyTag}. * * @param id the ID of the modified Policy. * @param revision the revision of the modified Policy. * @return a new {@link PolicyTag}. */ public static PolicyTag of(final String id, final long revision) { return new PolicyTag(id, revision); }
/** * Returns a new {@link PolicyTag}. * * @param id the ID of the modified Policy. * @param revision the revision of the modified Policy. * @return a new {@link PolicyTag}. */ public static PolicyTag of(final String id, final long revision) { return new PolicyTag(id, revision); }
/** * Creates a new {@link PolicyTag} from a JSON object. * * @param jsonObject the JSON object of which a new {@link PolicyTag} is to be created. * @return the {@link PolicyTag} 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 PolicyTag fromJson(final JsonObject jsonObject) { return new PolicyTag(jsonObject); }
/** * Creates a new {@link PolicyTag} from a JSON object. * * @param jsonObject the JSON object of which a new {@link PolicyTag} is to be created. * @return the {@link PolicyTag} 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 PolicyTag fromJson(final JsonObject jsonObject) { return new PolicyTag(jsonObject); }