[docs] Add wpiunits to JavaDocs (#5793)

Co-authored-by: Sam Carlberg <sam.carlberg@gmail.com>
This commit is contained in:
Tyler Veness
2023-10-20 18:14:14 -07:00
committed by GitHub
parent 25dad5a531
commit bee32f080e
11 changed files with 120 additions and 35 deletions

View File

@@ -7,6 +7,7 @@ package edu.wpi.first.units.collections;
import java.util.Arrays;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.stream.LongStream;
/** A read-only set of unique primitive {@code long} values. */
@@ -87,7 +88,12 @@ public class ReadOnlyPrimitiveLongSet implements Iterable<Long> {
return size() == 0;
}
/** Creates a stream of primitive long values for the set. */
/**
* Creates a stream of primitive long values for the set.
*
* @return a sequential Stream over the elements in this collection
* @see Set#stream()
*/
public LongStream stream() {
return Arrays.stream(m_values);
}