mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-24 04:42:51 -04:00
improved IntFormat constructors
This commit is contained in:
parent
f63695b96f
commit
a341ef3b4d
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user