Package com.solibri.smc.api.settings
Class IntegerSetting
java.lang.Object
com.solibri.smc.api.settings.IntegerSetting
public abstract class IntegerSetting extends Object implements Setting<Integer>
The intended base class for Integer valued custom settings.
- Since:
- 9.10.8
-
Constructor Summary
Constructors Constructor Description IntegerSetting()
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.solibri.smc.api.settings.Setting
getDefaultValue, getDescription, getName, getUniqueId
-
Constructor Details
-
IntegerSetting
public IntegerSetting()
-
-
Method Details
-
getValue
Description copied from interface:Setting
Returns the current value of the setting. This returns the new value of the setting immediately after it has been changed, but note that it is up to the users of settings to decide if the new value takes effect immediately or after a restart. -
setValue
Description copied from interface:Setting
Sets the value of the setting. -
invalidReason
The default is that any possible integer is valid.- Specified by:
invalidReason
in interfaceSetting<Integer>
- Parameters:
value
- the value to be checked for validity- Returns:
- true if the given value is valid, false otherwise
-