- }
-
- bits = ImmutableList.copyOf(bitsInit);
- }
-
- @Override
- public List<Bit> getBits() {
- return bits;
- }
-
- @Override
- public BitsTypeDefinition getBaseType() {
- return null;
- }
-
- @Override
- public String getUnits() {
- return UNITS;
- }
-
- @Override
- public Object getDefaultValue() {
- return bits;
- }
-
- @Override
- public QName getQName() {
- return QNAME;
- }
-
- @Override
- public SchemaPath getPath() {
- return path;
- }
-
- @Override
- public List<UnknownSchemaNode> getUnknownSchemaNodes() {
- return Collections.emptyList();
- }
-
- @Override
- public String getDescription() {
- return DESCRIPTION;
- }
-
- @Override
- public String getReference() {
- return REFERENCE;
- }
-
- @Override
- public Status getStatus() {
- return Status.CURRENT;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((bits == null) ? 0 : bits.hashCode());
- result = prime * result + QNAME.hashCode();
- result = prime * result + path.hashCode();
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- BitsSpecificationEffectiveStatementImpl other = (BitsSpecificationEffectiveStatementImpl) obj;
- if (bits == null) {
- if (other.bits != null) {
- return false;
- }
- } else if (!bits.equals(other.bits)) {
- return false;
- }
- if (path == null) {
- if (other.path != null) {
- return false;