public class ReplSet extends Object
| Constructor and Description |
|---|
ReplSet()
Create a new blank set of pairs.
|
ReplSet(List<ReplPair> lst)
Create a new set of pairs using an existing list of pairs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPairs(List<ReplPair> pars)
Adds more pairs to the ReplSet.
|
void |
addPairs(ReplPair... pars)
Adds more pairs to the ReplSet.
|
String |
apply(String val)
Apply the ReplSet to a string.
|
static ReplSet |
fromFile(String fName)
Load a ReplSet from a file.
|
public static ReplSet fromFile(String fName) throws IOException
fName - The file to load the ReplSet from.IOException - if something goes badly reading it.public void addPairs(List<ReplPair> pars)
pars - The pairs to add to the ReplSet.public void addPairs(ReplPair... pars)
pars - The pairs to add to the ReplSet.Copyright © 2020. All rights reserved.