Skip to content

Commit

Permalink
Added support for a node item-based document.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Dec 29, 2024
1 parent ce259ba commit a80ac27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ default I cast(@NonNull ISequence<?> sequence) {
return item == null ? null : cast(item);
}

/**
* Construct a new instance of this type using the provided value.
*
* @param value
* the "wrapped" value of the type
* @return the new item
*/
@NonNull
I newItem(@NonNull Object value);

/**
* A callback used to perform a casting operation.
*
Expand All @@ -153,14 +163,4 @@ interface ICastExecutor<ITEM extends IAnyAtomicItem> {
@NonNull
ITEM cast(@NonNull IAnyAtomicItem item);
}

/**
* Construct a new instance of this type using the provided value.
*
* @param value
* the "wrapped" value of the type
* @return the new item
*/
@NonNull
I newItem(@NonNull Object value);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
* associated {@link IAnyAtomicItem} value.
*/
public interface IAtomicValuedItem extends IItem {
// no additional methods
// no new methods
}

0 comments on commit a80ac27

Please sign in to comment.