21 package org.opensplice.dds.core.policy;
23 import java.util.Arrays;
30 private static final long serialVersionUID = -7657320816433336931L;
31 private final byte[] value;
35 this.value =
new byte[0];
42 this.value = value.clone();
44 this.value =
new byte[0];
50 return this.value.clone();
64 public boolean equals(Object other) {
68 return Arrays.equals(this.value, ((UserDataImpl) other).value);
76 for (byte b : this.value) {
77 result = prime * result + b;
byte [] getValue()
Get a copy of the data.
Class<? extends QosPolicy > getPolicyClass()
UserDataImpl(OsplServiceEnvironment environment)
User data not known by the middleware, but distributed by means of built-in topics.
OsplServiceEnvironment environment
boolean equals(Object other)
UserData withValue(byte[] value, int offset, int length)
This class is the abstract root for all the QoS policies.
UserDataImpl(OsplServiceEnvironment environment, byte[] value)