summaryrefslogtreecommitdiff
path: root/dice/src/main/java/bjc/dicelang/neodice/DiePool.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2021-03-13 10:13:01 -0500
committerBen Culkin <scorpress@gmail.com>2021-03-13 10:13:01 -0500
commitee6a9305a1009e6f1e3e99d5de3cfba5305a5d1b (patch)
tree814ed2184dbc7c10eff387103e5b5b63cfb2e74f /dice/src/main/java/bjc/dicelang/neodice/DiePool.java
parent7efb7b9e997e0977c8343718cd8b5149805ea57b (diff)
Update documentation
Also, did the same thing for Die I did for DiePool, where I moved the specific classes to the same file as the interface.
Diffstat (limited to 'dice/src/main/java/bjc/dicelang/neodice/DiePool.java')
-rw-r--r--dice/src/main/java/bjc/dicelang/neodice/DiePool.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/dice/src/main/java/bjc/dicelang/neodice/DiePool.java b/dice/src/main/java/bjc/dicelang/neodice/DiePool.java
index 4513682..16bec48 100644
--- a/dice/src/main/java/bjc/dicelang/neodice/DiePool.java
+++ b/dice/src/main/java/bjc/dicelang/neodice/DiePool.java
@@ -8,7 +8,8 @@ import java.util.stream.*;
* Represents a pool of dice.
*
* @author Ben Culkin
- *
+ *
+ * @param <SideType> The type of the sides of the contained dice.
*/
@FunctionalInterface
public interface DiePool<SideType> {
@@ -55,6 +56,7 @@ public interface DiePool<SideType> {
* Returns a version of this die pool which returns its results in sorted
* order.
*
+ * @param comparer The comparator to use for the dice.
* @param isDescending True to sort in descending order, false to sort in ascending order.
*
* @return The die pool, which returns its results in sorted order.
@@ -152,6 +154,7 @@ public interface DiePool<SideType> {
/**
* Return a die pool which rolls this one, then drops a number of the lowest values.
*
+ * @param comparer The comparer to use for the sides.
* @param number The number of lowest values to drop.
*
* @return A die pool which has the lowest entries dropped.
@@ -163,6 +166,7 @@ public interface DiePool<SideType> {
/**
* Return a die pool which rolls this one, then drops a number of the lowest values.
*
+ * @param comparer The comparer to use for the sides.
* @param number The number of lowest values to drop.
*
* @return A die pool which has the lowest entries dropped.
@@ -174,6 +178,7 @@ public interface DiePool<SideType> {
/**
* Return a die pool which rolls this one, then keeps a number of the lowest values.
*
+ * @param comparer The comparer to use for the sides.
* @param number The number of lowest values to keep.
*
* @return A die pool which has the lowest entries kept.
@@ -185,6 +190,7 @@ public interface DiePool<SideType> {
/**
* Return a die pool which rolls this one, then keeps a number of the highest values.
*
+ * @param comparer The comparer to use for the sides.
* @param number The number of highest values to keep.
*
* @return A die pool which has the highest entries kept.