+ "That is, a bits value is a set of flags identified by small integer position "
+ "numbers starting at 0. Each bit number has an assigned name.";
- private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.7";
- private final BitsTypeDefinition baseType;
+ private static final String REFERENCE = "https://tools.ietf.org/html/rfc6020#section-9.7";
private final List<Bit> bits;
- private final String units = "";
+ private static final String UNITS = "";
/**
* Default constructor. <br>
super();
this.bits = Collections.emptyList();
this.path = path;
- this.baseType = this;
}
/**
super();
this.bits = Collections.unmodifiableList(bits);
this.path = path;
- this.baseType = this;
}
/*
*/
@Override
public BitsTypeDefinition getBaseType() {
- return baseType;
+ return null;
}
/*
*/
@Override
public String getUnits() {
- return units;
+ return UNITS;
}
/*
*/
@Override
public String getReference() {
- return reference;
+ return REFERENCE;
}
/*
result = prime * result + ((description == null) ? 0 : description.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result + ((path == null) ? 0 : path.hashCode());
- result = prime * result + ((reference == null) ? 0 : reference.hashCode());
- result = prime * result + ((units == null) ? 0 : units.hashCode());
return result;
}
} else if (!path.equals(other.path)) {
return false;
}
- if (reference == null) {
- if (other.reference != null) {
- return false;
- }
- } else if (!reference.equals(other.reference)) {
- return false;
- }
- if (units == null) {
- if (other.units != null) {
- return false;
- }
- } else if (!units.equals(other.units)) {
- return false;
- }
return true;
}
builder.append(", description=");
builder.append(description);
builder.append(", reference=");
- builder.append(reference);
+ builder.append(REFERENCE);
builder.append(", bits=");
builder.append(bits);
builder.append(", units=");
- builder.append(units);
+ builder.append(UNITS);
builder.append("]");
return builder.toString();
}