diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:45:06 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:45:06 -0400 |
| commit | 7bbc3b4c159eb50f6286ccbcc8da6af9f5a8fb06 (patch) | |
| tree | 24c628a479fc5ae790b2dbd292581bed6e149ed1 /src/main/java/bjc/everge/ReplSet.java | |
| parent | 10b6688ef898285924026e695240a1de2f332bcb (diff) | |
Cleanup pass
Pass to do some cleanup
Diffstat (limited to 'src/main/java/bjc/everge/ReplSet.java')
| -rw-r--r-- | src/main/java/bjc/everge/ReplSet.java | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/main/java/bjc/everge/ReplSet.java b/src/main/java/bjc/everge/ReplSet.java index f759e8e..0920c6a 100644 --- a/src/main/java/bjc/everge/ReplSet.java +++ b/src/main/java/bjc/everge/ReplSet.java @@ -23,10 +23,11 @@ public class ReplSet { /** * Create a new set of pairs using an existing list of pairs. * - * Changes to the list of pairs will carry across to the ReplSet, so be careful about that. + * Changes to the list of pairs will carry across to the ReplSet, so be careful + * about that. * * @param lst - * The list of pairs to use. + * The list of pairs to use. */ public ReplSet(List<ReplPair> lst) { parList = lst; @@ -34,15 +35,18 @@ public class ReplSet { /** * Load a ReplSet from a file. + * * @param fName - * The file to load the ReplSet from. + * The file to load the ReplSet from. * @return A ReplSet, loaded from the file. - * @throws IOException if something goes badly reading it. + * @throws IOException + * if something goes badly reading it. */ public static ReplSet fromFile(String fName) throws IOException { ReplSet rs = new ReplSet(); - try (FileInputStream fis = new FileInputStream(fName); Scanner scn = new Scanner(fis)) { + try (FileInputStream fis = new FileInputStream(fName); + Scanner scn = new Scanner(fis)) { rs.parList = ReplPair.readList(scn); } @@ -53,7 +57,7 @@ public class ReplSet { * Adds more pairs to the ReplSet. * * @param pars - * The pairs to add to the ReplSet. + * The pairs to add to the ReplSet. */ public void addPairs(List<ReplPair> pars) { for (ReplPair par : pars) { @@ -68,7 +72,7 @@ public class ReplSet { * Adds more pairs to the ReplSet. * * @param pars - * The pairs to add to the ReplSet. + * The pairs to add to the ReplSet. */ public void addPairs(ReplPair... pars) { for (ReplPair par : pars) { @@ -83,7 +87,7 @@ public class ReplSet { * Apply the ReplSet to a string. * * @param val - * The string to apply the ReplSet to. + * The string to apply the ReplSet to. * * @return The result of applying the ReplSet. */ |
