improved IntFormat constructors

This commit is contained in:
hneemann 2021-01-25 13:01:33 +01:00
parent f63695b96f
commit a341ef3b4d

View File

@ -66,16 +66,13 @@ public enum IntFormat {
private final boolean dependsOnAttributes;
IntFormat(ValueFormatter instance) {
this(attributes -> instance, false);
this.factory = attributes -> instance;
this.dependsOnAttributes = false;
}
IntFormat(Factory factory) {
this(factory, true);
}
IntFormat(Factory factory, boolean dependsOnAttributes) {
this.factory = factory;
this.dependsOnAttributes = dependsOnAttributes;
this.dependsOnAttributes = true;
}
/**