21 package org.opensplice.dds.core.policy;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.HashSet;
33 private static final long serialVersionUID = -4815852698195218221L;
34 private final HashSet<String> keyList;
39 this.keyList =
new HashSet<String>();
41 for (String k : keyValue) {
47 Collection<String> keyValue) {
50 this.keyList =
new HashSet<String>();
52 if (keyValue != null) {
53 for (String k : keyValue) {
61 return Collections.unmodifiableSet(this.keyList);
85 public boolean equals(Object other) {
91 if (s.keyList.size() != this.keyList.size()) {
94 return s.keyList.containsAll(this.keyList);
102 for (String key : this.keyList) {
103 result = prime * result + key.hashCode();
Class<? extends QosPolicy > getPolicyClass()
OsplServiceEnvironment environment
boolean equals(Object other)
SubscriptionKeys withKey(String keyList)
Copy this policy and override the value of the property.
SubscriptionKeys withKey(Collection< String > keyList)
Copy this policy and override the value of the property.
SubscriptionKeys withKey(String... keyList)
Copy this policy and override the value of the property.
By using the SubscriptionKey QosPolicy, a DataReader can force its own key-list definition on data sa...
This class is the abstract root for all the QoS policies.
SubscriptionKeysImpl(OsplServiceEnvironment environment, String... keyValue)
SubscriptionKeysImpl(OsplServiceEnvironment environment, Collection< String > keyValue)