Class ProviderView<T>
java.lang.Object
net.tangly.core.providers.Provider<T>
net.tangly.core.providers.ProviderView<T>
- Type Parameters:
T- type of the items handled in the provider
Define a filtered view on an underlying provider. The view is defined by a predicate on the items of the provider.
-
Constructor Summary
ConstructorsConstructorDescriptionProviderView(@NotNull Provider<T> provider, @NotNull Predicate<T> predicate) -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the data associated with the entity.voidDeletes all the entities managed by the provider.items()Returns a list containing all known instances of the entity type.static <T> Provider<T> static <T> Provider<T> voidvoidUpdates the data associated with the entity.
-
Constructor Details
-
ProviderView
-
-
Method Details
-
of
-
of
-
predicate
-
items
-
update
Description copied from class:ProviderUpdates the data associated with the entity. If the entity is new, the update is handled as a create operation. The update is transitive and all referenced entities are also updated. The entity given as a parameter becomes the instance managed through the provider. -
delete
-
deleteAll
-