Skip to content

Commit

Permalink
Fix Javadoc code elements
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 13, 2023
1 parent 32c68b7 commit ac05d8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public final class ArrayCountingBloomFilter implements CountingBloomFilter {
private final int[] cells;

/**
* The state flag. This is a bitwise @{code OR} of the entire history of all updated
* The state flag. This is a bitwise {@code OR} of the entire history of all updated
* cells. If negative then a negative cell or integer overflow has occurred on
* one or more cells in the history of the filter and the state is invalid.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
import java.util.function.LongPredicate;

/**
* A long predicate that applies the test func to each member of the @{code ary} in sequence for each call to @{code test()}.
* if the @{code ary} is exhausted, the subsequent calls to @{code test} are executed with a zero value.
* If the calls to @{code test} do not exhaust the @{code ary} the @{code forEachRemaining} method can be called to
* execute the @code{text} with a zero value for each remaining @{code idx} value.
* A long predicate that applies the test func to each member of the {@code ary} in sequence for each call to {@code test()}.
* if the {@code ary} is exhausted, the subsequent calls to {@code test} are executed with a zero value.
* If the calls to {@code test} do not exhaust the {@code ary} the {@code forEachRemaining} method can be called to
* execute the @code{text} with a zero value for each remaining {@code idx} value.
*/
class CountingLongPredicate implements LongPredicate {
private int idx;
private final long[] ary;
private final LongBiPredicate func;

/**
* Constructs an instance that will compare the elements in @{code ary} with the elements returned by @{code func}.
* function is called as @{code func.test( idxValue, otherValue )}. If there are more @{code otherValue} values than
* @{code idxValues} then @{code func} is called as @{code func.test( 0, otherValue )}.
* Constructs an instance that will compare the elements in {@code ary} with the elements returned by {@code func}.
* function is called as {@code func.test( idxValue, otherValue )}. If there are more {@code otherValue} values than
* {@code idxValues} then {@code func} is called as {@code func.test( 0, otherValue )}.
* @param ary The array of long values to compare.
* @param func The function to apply to the pairs of long values.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface Hasher {
/**
* Creates an IndexProducer for this hasher based on the Shape.
*
* <p>The @{code IndexProducer} will create indices within the range defined by the number of bits in
* <p>The {@code IndexProducer} will create indices within the range defined by the number of bits in
* the shape. The total number of indices will respect the number of hash functions per item
* defined by the shape. However the count of indices may not be a multiple of the number of
* hash functions if the implementation has removed duplicates.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
* <p>
* You should create a concrete subclass of this class to test any custom
* {@link Collection} implementation. At minimum, you'll have to
* implement the @{@link #makeObject()}, {@link #makeConfirmedCollection()}
* implement the {@link #makeObject()}, {@link #makeConfirmedCollection()}
* and {@link #makeConfirmedFullCollection()} methods.
* You might want to override some of the additional public methods as well:
* <p>
Expand Down

0 comments on commit ac05d8f

Please sign in to comment.