Skip to content

Instantly share code, notes, and snippets.

@zivce
Last active April 17, 2021 14:10
public Optional<StoreConfiguration> update(Store store, String value) {
return store.getConfigurationId() // Optional<UUID>
.flatMap(storeConfigurationRepository::findById) // Optional<StoreConfiguration>
.map(config -> this.updateStoreConfiguration(store,value)) // Optional<StoreConfiguration>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment