Skip to content

Commit f98e346

Browse files
committed
Update DataObjectMap interface
1 parent ca90ac5 commit f98e346

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/main/java/picoded/dstack/DataObjectMap.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,21 @@ default boolean containsKey(Object key) {
7373
//--------------------------------------------------------------------------
7474

7575
/**
76-
* Generates a new blank object, with a GUID.
76+
* Generates a new blank object, with a generated GUID.
7777
* Note that save does not trigger, unless its called.
7878
*
7979
* @return the DataObject
8080
**/
8181
DataObject newEntry();
82+
83+
/**
84+
* Generates a new blank object, with a given GUID.
85+
* Note that save does not trigger, unless its called.
86+
*
87+
* @param oid the object ID to use for the new entry, if null a GUID will be generated
88+
* @return the DataObject
89+
*/
90+
DataObject newEntry(String oid);
8291

8392
/**
8493
* Generates a new blank object, with a GUID.

0 commit comments

Comments
 (0)