public Optional < Object > getDefaultValue ( ) { if ( property instanceof BooleanProperty ) { BooleanProperty booleanProperty = ( BooleanProperty ) property ; return Optional . ofNullable ( booleanProperty . getDefault ( ) ) ; } else if ( property instanceof StringProperty ) { StringProperty stringProperty = ( StringProperty ) property ; return Optional . ofNullable ( stringProperty . getDefault ( ) ) ; } else if ( property instanceof DoubleProperty ) { DoubleProperty doubleProperty = ( DoubleProperty ) property ; return Optional . ofNullable ( doubleProperty . getDefault ( ) ) ; } else if ( property instanceof FloatProperty ) { FloatProperty floatProperty = ( FloatProperty ) property ; return Optional . ofNullable ( floatProperty . getDefault ( ) ) ; } else if ( property instanceof IntegerProperty ) { IntegerProperty integerProperty = ( IntegerProperty ) property ; return Optional . ofNullable ( integerProperty . getDefault ( ) ) ; } else if ( property instanceof LongProperty ) { LongProperty longProperty = ( LongProperty ) property ; return Optional . ofNullable ( longProperty . getDefault ( ) ) ; } else if ( property instanceof UUIDProperty ) { UUIDProperty uuidProperty = ( UUIDProperty ) property ; return Optional . ofNullable ( uuidProperty . getDefault ( ) ) ; } return Optional . empty ( ) ; }
Retrieves the default value of a property