From 38f1e562bf1e1d9d2c837317fced7467f2e81adc Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Thu, 3 Dec 2020 19:24:23 -0500 Subject: Rename interfaces to match Java style Renames several interfaces named in the IWhatever style, which Java doesn't use --- .../java/bjc/dicelang/neodice/commands/PolyhedralDieCommand.java | 2 +- .../java/bjc/dicelang/neodice/statements/DiePoolStatementValue.java | 4 ++-- .../java/bjc/dicelang/neodice/statements/DieStatementValue.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dice/src/example/java') diff --git a/dice/src/example/java/bjc/dicelang/neodice/commands/PolyhedralDieCommand.java b/dice/src/example/java/bjc/dicelang/neodice/commands/PolyhedralDieCommand.java index 6af495e..aad2a24 100644 --- a/dice/src/example/java/bjc/dicelang/neodice/commands/PolyhedralDieCommand.java +++ b/dice/src/example/java/bjc/dicelang/neodice/commands/PolyhedralDieCommand.java @@ -20,7 +20,7 @@ public class PolyhedralDieCommand implements Command { if (numSides < 0) throw new DieBoxException("Number of sides to polyhedral-die was not valid (must be less than 0, was %d)", numSides); - IDie die = IDie + Die die = Die .polyhedral(numSides) .transform(IntegerStatementValue::new); diff --git a/dice/src/example/java/bjc/dicelang/neodice/statements/DiePoolStatementValue.java b/dice/src/example/java/bjc/dicelang/neodice/statements/DiePoolStatementValue.java index 551c0e9..8d7c1f4 100644 --- a/dice/src/example/java/bjc/dicelang/neodice/statements/DiePoolStatementValue.java +++ b/dice/src/example/java/bjc/dicelang/neodice/statements/DiePoolStatementValue.java @@ -8,9 +8,9 @@ import bjc.dicelang.neodice.*; public class DiePoolStatementValue extends StatementValue { public final Type elementType; - public final IDiePool value; + public final DiePool value; - public DiePoolStatementValue(Type elementType, IDiePool value) { + public DiePoolStatementValue(Type elementType, DiePool value) { super(DIEPOOL); this.elementType = elementType; diff --git a/dice/src/example/java/bjc/dicelang/neodice/statements/DieStatementValue.java b/dice/src/example/java/bjc/dicelang/neodice/statements/DieStatementValue.java index e1dbde8..f9a8d1e 100644 --- a/dice/src/example/java/bjc/dicelang/neodice/statements/DieStatementValue.java +++ b/dice/src/example/java/bjc/dicelang/neodice/statements/DieStatementValue.java @@ -8,9 +8,9 @@ import bjc.dicelang.neodice.*; public class DieStatementValue extends StatementValue { public final Type sideType; - public final IDie value; + public final Die value; - public DieStatementValue(Type sideType, IDie value) { + public DieStatementValue(Type sideType, Die value) { super(DIE); this.sideType = sideType; -- cgit v1.2.3