T
- the type of the object to removepublic interface ObjectDataRemover<T>
OutputDataSource
that is able to remove the object that the source
points to.Modifier and Type | Method and Description |
---|---|
java.util.Optional<T> |
removeObject(GluonObservableObject<T> observable)
Removes the object and optionally returns an object.
|
java.util.Optional<T> removeObject(GluonObservableObject<T> observable) throws java.io.IOException
DataProvider.removeObject(GluonObservableObject, ObjectDataRemover)
to initiate the actual removal process. If this method returns a non-empty Optional, the object that is contained
in the Optional will be set on the provided observable
object. Otherwise, the value of the
observable
object will be set to null
. When the remove operation completed
successfully, the state of the provided observable
will be set to
ConnectState.REMOVED
.observable
- the observable object that needs to be removedjava.io.IOException
- when an exception occurred during the removal process