Uses of Class
org.apache.sling.discovery.commons.InstancesDiff.InstanceCollection
Packages that use InstancesDiff.InstanceCollection
Package
Description
Provides commons utility for users for the Discovery API.
-
Uses of InstancesDiff.InstanceCollection in org.apache.sling.discovery.commons
Methods in org.apache.sling.discovery.commons that return InstancesDiff.InstanceCollectionModifier and TypeMethodDescription@NotNull InstancesDiff.InstanceCollectionInstancesDiff.added()Returns theInstanceCollectioncollection containing theInstanceDescriptioninstances that are contained in the new collection but not in the old collection.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.all(boolean retainFromNewCollection) Returns theInstanceSetset containing theInstanceDescriptioninstances that are contained in either the old or the new collection.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.filterWith(@Nullable InstanceFilter filter) Filter the instances with a customInstanceFilterfilter.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isInClusterView(@Nullable ClusterView clusterView) Keep only the instances that are contained in the sameClusterViewcluster view as the one provided.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isLeader()Keep only the leader instances (seeInstanceDescription.isLeader().@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isLocal()Keep only the local instance (seeInstanceDescription.isLocal().@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isNotInClusterView(@Nullable ClusterView clusterView) Filter out the instances that are contained in the sameClusterViewcluster view as the one provided.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isNotLeader()Filter out the leader instances (seeInstanceDescription.isLeader().@NotNull InstancesDiff.InstanceCollectionInstancesDiff.InstanceCollection.isNotLocal()Filter out the local instances (seeInstanceDescription.isLocal().@NotNull InstancesDiff.InstanceCollectionInstancesDiff.removed()Returns theInstanceCollectioncollection containing theInstanceDescriptioninstances that are contained in the old collection but not in the new collection.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.retained(boolean retainFromNewCollection) Returns theInstanceSetcollection containing theInstanceDescriptioninstances that are contained in both the old collection and the new collection.@NotNull InstancesDiff.InstanceCollectionInstancesDiff.retained(boolean retainFromNewCollection, boolean propertyChanged) Returns theInstanceCollectioncollection containing theInstanceDescriptioninstances that are contained in both the old and the new collections.