org.reactfx.util.AccumulatorSize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
FX-Text-Area for formatted text and other special effects.
package org.reactfx.util;
public enum AccumulatorSize {
ZERO, ONE, MANY;
public static AccumulatorSize fromInt(int n) {
if(n < 0) {
throw new IllegalArgumentException("Size cannot be negative: " + n);
} else switch(n) {
case 0: return ZERO;
case 1: return ONE;
default: return MANY;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy