public class OptionalIntegerParameter extends OptionalParameter<Integer>
Integer
OptionalParameter.Deserializer<T>, OptionalParameter.Serializer
Constructor and Description |
---|
OptionalIntegerParameter()
Creates a new instance
|
OptionalIntegerParameter(boolean enabled,
int value) |
OptionalIntegerParameter(OptionalIntegerParameter other)
Creates a copy
|
Modifier and Type | Method and Description |
---|---|
int |
orElse(int defaultValue) |
Integer |
setNewInstance()
Adds a new instance of the content class
Override this method for types that cannot be default-constructed
|
equals, getContent, getContentClass, getContentOrDefault, getTextDescription, hashCode, isEnabled, setContent, setEnabled, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTextDescriptionOf
public OptionalIntegerParameter()
public OptionalIntegerParameter(boolean enabled, int value)
public OptionalIntegerParameter(OptionalIntegerParameter other)
other
- the originalpublic Integer setNewInstance()
OptionalParameter
setNewInstance
in class OptionalParameter<Integer>
public int orElse(int defaultValue)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.