import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
/**
* @file AdvertisedBandWidth.java
*
@XmlRootElement
@SuppressWarnings("serial")
public class AdvertisedBandwidth extends Bandwidth {
- public static final String AdvertisedBandwidthPropName = "advertisedBandwidth";
-
- public AdvertisedBandwidth(long value) {
- super(AdvertisedBandwidthPropName);
- this.bandwidthValue = value;
- }
-
- /*
+ public static final String AdvertisedBandwidthPropName = "advertisedBandwidth";
+
+ public AdvertisedBandwidth(long value) {
+ super(AdvertisedBandwidthPropName);
+ this.bandwidthValue = value;
+ }
+
+ /*
* Private constructor used for JAXB mapping
*/
private AdvertisedBandwidth() {
- super(AdvertisedBandwidthPropName);
- this.bandwidthValue = 0;
- }
-
- public AdvertisedBandwidth clone() {
- return new AdvertisedBandwidth(this.bandwidthValue);
+ super(AdvertisedBandwidthPropName);
+ this.bandwidthValue = 0;
}
-
- @Override
- public int hashCode() {
- return HashCodeBuilder.reflectionHashCode(this);
+
+ public AdvertisedBandwidth clone() {
+ return new AdvertisedBandwidth(this.bandwidthValue);
}
- @Override
- public boolean equals(Object obj) {
- return EqualsBuilder.reflectionEquals(this, obj);
- }
-
@Override
public String toString() {
StringBuffer sb = new StringBuffer();