| Modifier and Type | Class and Description |
|---|---|
class |
DivisibleRule |
class |
PrimeRule |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
PrimeRule.of(Function<Integer,String> substituteFunction) |
static Rule |
PrimeRule.of(String substitute) |
static Rule |
DivisibleRule.ofAll(Function<Integer,String> substituteFunction,
Integer... nums) |
static Rule |
DivisibleRule.ofAll(String substitute,
Integer... nums) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DivisibleRule.alreadyCoveredBy(Rule rule) |
boolean |
PrimeRule.alreadyCoveredBy(Rule rule) |
default boolean |
Rule.alreadyCoveredBy(Rule anotherRule) |
static FizzBuzz |
FizzBuzz.of(Rule... rules)
Create a new FizzBuzz using a number of rules.
|
Copyright © 2019. All rights reserved.