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.InstanceCollection
InstancesDiff.added()
Returns theInstanceCollection
collection containing theInstanceDescription
instances that are contained in the new collection but not in the old collection.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.all
(boolean retainFromNewCollection) Returns theInstanceSet
set containing theInstanceDescription
instances that are contained in either the old or the new collection.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.filterWith
(@Nullable InstanceFilter filter) Filter the instances with a customInstanceFilter
filter.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isInClusterView
(@Nullable ClusterView clusterView) Keep only the instances that are contained in the sameClusterView
cluster view as the one provided.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isLeader()
Keep only the leader instances (seeInstanceDescription.isLeader()
.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isLocal()
Keep only the local instance (seeInstanceDescription.isLocal()
.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isNotInClusterView
(@Nullable ClusterView clusterView) Filter out the instances that are contained in the sameClusterView
cluster view as the one provided.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isNotLeader()
Filter out the leader instances (seeInstanceDescription.isLeader()
.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.InstanceCollection.isNotLocal()
Filter out the local instances (seeInstanceDescription.isLocal()
.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.removed()
Returns theInstanceCollection
collection containing theInstanceDescription
instances that are contained in the old collection but not in the new collection.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.retained
(boolean retainFromNewCollection) Returns theInstanceSet
collection containing theInstanceDescription
instances that are contained in both the old collection and the new collection.@NotNull InstancesDiff.InstanceCollection
InstancesDiff.retained
(boolean retainFromNewCollection, boolean propertyChanged) Returns theInstanceCollection
collection containing theInstanceDescription
instances that are contained in both the old and the new collections.