pedantic fmting things

This commit is contained in:
gamma-delta 2022-11-02 16:04:22 +01:00
parent 5a8f8317c9
commit 45242592a5

View file

@ -16,8 +16,7 @@ public abstract class Iota {
this.payload = payload; this.payload = payload;
} }
public @NotNull public @NotNull IotaType<?> getType() {
IotaType<?> getType() {
return this.type; return this.type;
} }
@ -27,18 +26,15 @@ public abstract class Iota {
/** /**
* Compare this to another object, within a tolerance. * Compare this to another object, within a tolerance.
* <p>
* Don't call this directly; use the {@link Iota#tolerates} static method.
*/ */
abstract public boolean toleratesOther(Iota that); abstract protected boolean toleratesOther(Iota that);
/** /**
* Serialize this under the {@code data} tag. * Serialize this under the {@code data} tag.
* <p> * <p>
* You probably don't want to call this directly; use {@link HexIotaTypes#serialize}. * You probably don't want to call this directly; use {@link HexIotaTypes#serialize}.
*/ */
abstract public @NotNull abstract public @NotNull Tag serialize();
Tag serialize();
public Component display() { public Component display() {
return this.type.display(this.serialize()); return this.type.display(this.serialize());