21 package org.opensplice.dds.core.policy;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.HashSet;
32 private static final long serialVersionUID = -4786321587154092502L;
33 private final HashSet<String> keyList;
37 this.keyList =
new HashSet<String>();
39 for (String k : keyValue) {
45 Collection<String> keyValue) {
47 this.keyList =
new HashSet<String>();
49 if (keyValue != null) {
50 for (String k : keyValue) {
58 return Collections.unmodifiableSet(this.keyList);
82 public boolean equals(Object other) {
88 if (v.keyList.size() != this.keyList.size()) {
91 return v.keyList.containsAll(this.keyList);
99 for (String key : this.keyList) {
100 result = prime * result + key.hashCode();
boolean equals(Object other)
Class<? extends QosPolicy > getPolicyClass()
OsplServiceEnvironment environment
ViewKeys withKey(String keyList)
Copy this policy and override the value of the property.
ViewKeys withKey(Collection< String > keyList)
Copy this policy and override the value of the property.
This class is the abstract root for all the QoS policies.
ViewKeys withKey(String... keyList)
Copy this policy and override the value of the property.
ViewKeysImpl(OsplServiceEnvironment environment, String... keyValue)
ViewKeysImpl(OsplServiceEnvironment environment, Collection< String > keyValue)
This QosPolicy is used to set the key list of a DataReaderView.