Skip to content

Commit

Permalink
clarify contract for mutable pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursivePineapple committed Jan 7, 2025
1 parent 65ec57c commit 95ba69c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

/**
* A mutable implementation of {@link ImmutableBlockMeta}. Must follow the same contracts as the immutable version. If
* your API should return a mutable pair, return this instead.
* your API should return a mutable pair, return this instead. If this type is exposed instead of the immutable
* interface, assume that the contained values can change.
*/
public class BlockMeta implements ImmutableBlockMeta {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

/**
* A mutable implementation of {@link ImmutableItemMeta}. Must follow the same contracts as the immutable version. If
* your API should return a mutable pair, return this instead.
* your API should return a mutable pair, return this instead. If this type is exposed instead of the immutable
* interface, assume that the contained values can change.
*/
public class ItemMeta implements ImmutableItemMeta {

Expand Down

0 comments on commit 95ba69c

Please sign in to comment.