21 package org.opensplice.dds.core.policy;
23 import java.util.Collection;
24 import java.util.Collections;
25 import java.util.HashSet;
34 private static final long serialVersionUID = 3060990234546666051L;
35 private final HashSet<String> name;
39 this.name =
new HashSet<String>();
44 Collection<String> name) {
49 "Supplied name is invalid.");
51 this.name =
new HashSet<String>(name);
53 if(this.name.size() == 0){
61 this.name =
new HashSet<String>();
63 for(String partition: name){
64 this.name.add(partition);
66 if(this.name.size() == 0){
73 return Collections.unmodifiableSet(this.name);
97 public boolean equals(Object other) {
103 if (this.name.size() != p.name.size()) {
106 if (!this.name.containsAll(p.name)) {
114 final int prime = 31;
117 for (String name : this.name) {
118 result = prime * result + name.hashCode();
PartitionImpl(OsplServiceEnvironment environment, String... name)
PartitionImpl(OsplServiceEnvironment environment, Collection< String > name)
Class<? extends QosPolicy > getPolicyClass()
OsplServiceEnvironment environment
This policy allows the introduction of a logical partition concept inside the "physical" partition in...
boolean equals(Object other)
Partition withName(String... names)
Copy this policy and override the value of the property.
Partition withName(String name)
Copy this policy and override the value of the property.
This class is the abstract root for all the QoS policies.
Partition withName(Collection< String > name)
Copy this policy and override the value of the property.
PartitionImpl(OsplServiceEnvironment environment)