Skip to content

Commit 161a382

Browse files
committed
chore: add toString for the schema
1 parent f84074c commit 161a382

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/net/kyori/option/OptionSchemaImpl.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public OptionState emptyState() {
7171
return this.emptyState;
7272
}
7373

74+
@Override
75+
public String toString() {
76+
return "OptionSchemaImpl{" +
77+
"options=" + this.options +
78+
'}';
79+
}
80+
7481
static final class Instances {
7582
static OptionSchemaImpl.MutableImpl GLOBAL = new OptionSchemaImpl(null).new MutableImpl();
7683
}
@@ -146,5 +153,10 @@ public boolean has(final @NotNull Option<?> option) {
146153
public OptionState emptyState() {
147154
return OptionSchemaImpl.this.emptyState();
148155
}
156+
157+
@Override
158+
public String toString() {
159+
return "MutableImpl{schema=" + OptionSchemaImpl.this + "}";
160+
}
149161
}
150162
}

0 commit comments

Comments
 (0)