/** * Returns a newly-created {@link MergedEntry}. * * @param revision the revision of the {@link MergedEntry} * @param type the type of the {@link MergedEntry} * @param content the content of the {@link MergedEntry} * @param <T> the content type. It is {@link JsonNode} because only JSON merge is currently supported. * @param paths the paths which participated to compose the {@link MergedEntry} */ public static <T> MergedEntry<T> of(Revision revision, EntryType type, T content, Iterable<String> paths) { return new MergedEntry<>(revision, type, content, paths); }
/** * Returns a newly-created {@link MergedEntry}. * * @param revision the revision of the {@link MergedEntry} * @param type the type of the {@link MergedEntry} * @param content the content of the {@link MergedEntry} * @param <T> the content type. It is {@link JsonNode} because only JSON merge is currently supported. * @param paths the paths which participated to compose the {@link MergedEntry} */ public static <T> MergedEntry<T> of(Revision revision, EntryType type, T content, Iterable<String> paths) { return new MergedEntry<>(revision, type, content, paths); }
/** * Returns a newly-created {@link MergedEntry}. * * @param revision the revision of the {@link MergedEntry} * @param type the type of the {@link MergedEntry} * @param content the content of the {@link MergedEntry} * @param <T> the content type. It is {@link JsonNode} because only JSON merge is currently supported. * @param paths the paths which participated to compose the {@link MergedEntry} */ public static <T> MergedEntry<T> of(Revision revision, EntryType type, T content, String... paths) { return new MergedEntry<>(revision, type, content, ImmutableList.copyOf(requireNonNull(paths, "paths"))); }
/** * Returns a newly-created {@link MergedEntry}. * * @param revision the revision of the {@link MergedEntry} * @param type the type of the {@link MergedEntry} * @param content the content of the {@link MergedEntry} * @param <T> the content type. It is {@link JsonNode} because only JSON merge is currently supported. * @param paths the paths which participated to compose the {@link MergedEntry} */ public static <T> MergedEntry<T> of(Revision revision, EntryType type, T content, String... paths) { return new MergedEntry<>(revision, type, content, ImmutableList.copyOf(requireNonNull(paths, "paths"))); }