static boolean equals(final BitsTypeDefinition type, final Object obj) {
    if (type == obj) {
      return true;
    }

    final BitsTypeDefinition other = castIfEquals(BitsTypeDefinition.class, type, obj);
    return other != null && type.getBits().equals(other.getBits());
  }
 static int hashCode(final BitsTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getBits());
 }
 static String toString(final BitsTypeDefinition type) {
   return toStringHelper(type).add("bits", type.getBits()).toString();
 }