21 package org.opensplice.dds.core.policy;
23 import java.util.List;
24 import java.util.ArrayList;
25 import java.util.Collections;
34 private static final long serialVersionUID = -3169717693569991730L;
35 private final ArrayList<Short> value;
39 this.value =
new ArrayList<Short>();
48 "Supplied invalid list of values.");
50 this.value =
new ArrayList<Short>(value);
56 this.value =
new ArrayList<Short>(value.length);
58 for (
short val : value) {
73 return this.value.hashCode() - arg0.
getValue().hashCode();
77 public boolean equals(Object other) {
83 if (d.value.size() != this.value.size()) {
86 for (
int i = 0; i < this.value.size(); i++) {
87 if (!(this.value.get(i).equals(d.value.get(i)))) {
99 for (
short s : this.value) {
100 result = prime * result + s;
107 return Collections.unmodifiableList(this.value);
boolean equals(Object other)
int compareTo(DataRepresentation arg0)
OsplServiceEnvironment environment
DataRepresentation withValue(short... value)
Copy this policy and override the value of the property.
DataRepresentationImpl(OsplServiceEnvironment environment, short... value)
Comparable< DataRepresentation > requestedOfferedContract()
DataRepresentationImpl(OsplServiceEnvironment environment)
DataRepresentation withValue(List< Short > value)
Copy this policy and override the value of the property.
This class is the abstract root for all the QoS policies.
Class<? extends QosPolicy > getPolicyClass()
DataRepresentationImpl(OsplServiceEnvironment environment, List< Short > value)