Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 4, 2024
1 parent a0bbe67 commit c0e590d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,30 @@ public interface IRepoStorageReadItem
@Nonnull
IRepoStorageContent getContent ();

/**
* @return <code>true</code> if this repo item has an expected hash value
* assigned with it.
*/
boolean hasExpectedDigest ();

/**
* @return The stored hash bytes of this repo item or <code>null</code>.
* @see #hasExpectedDigest()
*/
@Nullable
@ReturnsMutableCopy
byte [] getExpectedDigest ();

/**
* @return <code>true</code> if a hash value was calculated during reading,
* <code>false</code> if not.
*/
boolean hasCalculatedDigest ();

/**
* @return The calculated hash bytes of this repo item or <code>null</code>.
* @see #hasCalculatedDigest()
*/
@Nullable
@ReturnsMutableCopy
byte [] getCalculatedDigest ();
Expand Down

0 comments on commit c0e590d

Please sign in to comment.