18
18
*/
19
19
package org .neo4j .driver ;
20
20
21
- import java .util .Arrays ;
22
21
import java .util .Set ;
23
22
24
23
import org .neo4j .driver .internal .InternalBookmark ;
@@ -38,19 +37,16 @@ public interface Bookmark
38
37
{
39
38
/**
40
39
* Returns a read-only set of bookmark strings that this bookmark instance identifies.
41
- * This method shall only be used to serialize bookmarks.
42
40
* @return a read-only set of bookmark strings that this bookmark instance identifies.
43
41
*/
44
42
Set <String > values ();
45
43
46
44
/**
47
- * Reconstruct bookmark from de-serialized bookmarks string values.
48
- * This method shall not be used to create non-existing bookmarks from random string values.
49
- * To create a bookmark from two and more existing bookmarks, using {@link this#merge(Bookmark...)} and {@link this#merge(Iterable)} instead.
45
+ * Reconstruct bookmark from \bookmarks string values.
50
46
* @param values values obtained from a previous bookmark.
51
47
* @return A bookmark.
52
48
*/
53
- static Bookmark parse ( Set <String > values )
49
+ static Bookmark from ( Set <String > values )
54
50
{
55
51
return InternalBookmark .parse ( values );
56
52
}
@@ -60,24 +56,4 @@ static Bookmark parse( Set<String> values )
60
56
* @return true if the bookmark is empty.
61
57
*/
62
58
boolean isEmpty ();
63
-
64
- /**
65
- * Merge more than one bookmarks together into one bookmark.
66
- * @param bookmarks bookmarks to merge
67
- * @return Merged single bookmark.
68
- */
69
- static Bookmark merge ( Bookmark ... bookmarks )
70
- {
71
- return merge ( Arrays .asList ( bookmarks ) );
72
- }
73
-
74
- /**
75
- * Merge more than one bookmarks together into one bookmark.
76
- * @param bookmarks bookmarks to merge
77
- * @return Merged singled bookmark.
78
- */
79
- static Bookmark merge ( Iterable <Bookmark > bookmarks )
80
- {
81
- return InternalBookmark .from ( bookmarks );
82
- }
83
59
}
0 commit comments